changeset 79:f50f701df33e matthiasm-plugin

debugged semitone spectrum (has values now even if all are zero)
author matthiasm
date Mon, 15 Nov 2010 09:23:49 +0900
parents d52884de7d79
children e8ceb7d3bd4f
files NNLSChroma.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NNLSChroma.cpp	Thu Nov 11 10:29:35 2010 +0900
+++ b/NNLSChroma.cpp	Mon Nov 15 09:23:49 2010 +0900
@@ -397,6 +397,8 @@
                     basschroma[signifIndex[iNote] % 12] += x[iNote] * basswindow[signifIndex[iNote]];
                 }
             }	
+        } else {
+            for (int i = 0; i < 84; ++i) f3.values.push_back(0);
         }
 			
         f4.values = chroma;