# HG changeset patch # User Chris Cannam # Date 1444233114 -3600 # Node ID 112766f4c34b6988c63f47c64f58c5db0a6fc443 # Parent 78ed74fa177be5e2acf848dead2b65f872c15633# Parent 1d6b5e0bed94c3bfec14de56d38ffe7cbf2fc474 Merge diff -r 1d6b5e0bed94 -r 112766f4c34b .hgignore --- a/.hgignore Mon Sep 07 16:42:27 2015 +0100 +++ b/.hgignore Wed Oct 07 16:51:54 2015 +0100 @@ -6,3 +6,9 @@ *.bak *.so +*.obj +*.tlog +*.pdb +*.idb +*.lib +*.dll diff -r 1d6b5e0bed94 -r 112766f4c34b .hgsubstate --- a/.hgsubstate Mon Sep 07 16:42:27 2015 +0100 +++ b/.hgsubstate Wed Oct 07 16:51:54 2015 +0100 @@ -1,3 +1,3 @@ 7a48704e9a0fac1486240f9f7b7e31436a588064 bqvec -554d7e86608a5ee72b82e6686dd45e67985561d7 constant-q-cpp +100430c32a259ac2f80776da0f8484029dc705c1 constant-q-cpp d25a2e91e9d84aaff25e5d746398232d182d127d flattendynamics diff -r 1d6b5e0bed94 -r 112766f4c34b .hgtags --- a/.hgtags Mon Sep 07 16:42:27 2015 +0100 +++ b/.hgtags Wed Oct 07 16:51:54 2015 +0100 @@ -14,3 +14,5 @@ eee4c7fd15abdd0142cef229f87f81f46845f471 mirex2015 eee4c7fd15abdd0142cef229f87f81f46845f471 mirex2015 071fd5e7b168a77b26883614fc786e487f4907ff mirex2015 +b1dc04c74671bfc56e5fa94272aa1a3dda941414 v1.1 +e24a6d8f00a476604a321c3362b03b81d31b6218 v1.1.0.1_win32 diff -r 1d6b5e0bed94 -r 112766f4c34b silvet.vcxproj --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/silvet.vcxproj Wed Oct 07 16:51:54 2015 +0100 @@ -0,0 +1,160 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + {047E24B5-2891-4DAD-A094-B853DDF56867} + Win32Proj + + + + DynamicLibrary + true + v140 + + + DynamicLibrary + false + v140 + + + Application + true + v140 + + + Application + false + v140 + + + + + + + + + + + + + + + + + + + + + true + + + true + + + + WIN32;_DEBUG;_WINDOWS;_USRDLL;SILVET_EXPORTS;USE_OWN_ALIGNED_MALLOC=1;kiss_fft_scalar=double;%(PreprocessorDefinitions) + MultiThreadedDebugDLL + Level3 + ProgramDatabase + Disabled + ..\vamp-plugin-sdk;.;.\constant-q-cpp;.\constant-q-cpp\cq;.\flattendynamics;.\bqvec;.\constant-q-cpp\src\ext\kissfft;.\constant-q-cpp\src\ext\kissfft\tools;%(AdditionalIncludeDirectories) + + + MachineX86 + true + Windows + + + + + WIN32;NDEBUG;_WINDOWS;_USRDLL;SILVET_EXPORTS;USE_OWN_ALIGNED_MALLOC=1;kiss_fft_scalar=double;%(PreprocessorDefinitions) + MultiThreaded + Level3 + ProgramDatabase + ..\vamp-plugin-sdk;.;.\constant-q-cpp;.\constant-q-cpp\cq;.\flattendynamics;.\bqvec;.\constant-q-cpp\src\ext\kissfft;.\constant-q-cpp\src\ext\kissfft\tools;%(AdditionalIncludeDirectories) + + + MachineX86 + true + Windows + true + true + ..\vamp-plugin-sdk\build\Release\VampPluginSDK.lib;%(AdditionalDependencies) + /EXPORT:vampGetPluginDescriptor %(AdditionalOptions) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff -r 1d6b5e0bed94 -r 112766f4c34b src/EM.cpp --- a/src/EM.cpp Mon Sep 07 16:42:27 2015 +0100 +++ b/src/EM.cpp Wed Oct 07 16:51:54 2015 +0100 @@ -245,6 +245,8 @@ } } + deallocate(contributions); + if (m_pitchSparsity != 1.0) { for (int n = 0; n < m_noteCount; ++n) { m_updatePitches[n] = diff -r 1d6b5e0bed94 -r 112766f4c34b src/Silvet.cpp --- a/src/Silvet.cpp Mon Sep 07 16:42:27 2015 +0100 +++ b/src/Silvet.cpp Wed Oct 07 16:51:54 2015 +0100 @@ -1020,7 +1020,12 @@ active[j] = strength; if (shiftCount > 1) { - activeShifts[j] = bestShifts[j]; + if (!bestShifts.empty()) { + activeShifts[j] = bestShifts[j]; + } else { + // can happen if column was below threshold + activeShifts[j] = 0; + } } }