diff src/Silvet.h @ 166:7979fa40c9f7 finetune

Start working on returning fine-tuning pitches
author Chris Cannam
date Tue, 20 May 2014 17:34:49 +0100
parents f73be84f5c90
children 416b555df3b2
line wrap: on
line diff
--- a/src/Silvet.h	Tue May 20 16:48:33 2014 +0100
+++ b/src/Silvet.h	Tue May 20 17:34:49 2014 +0100
@@ -77,6 +77,7 @@
     CQSpectrogram *m_cq;
 
     bool m_hqMode;
+    bool m_fineTuning;
     int m_instrument;
     int m_colsPerSec;
 
@@ -86,7 +87,14 @@
     vector<map<int, double> > m_pianoRoll;
 
     Grid preProcess(const Grid &);
-    FeatureList postProcess(const vector<double> &);
+
+    map<int, double> postProcess(const float *pitches,
+                                 const float *const *shifts,
+                                 int shiftCount,
+                                 double gain); // -> piano roll column
+
+    FeatureList noteTrack(const map<int, double> &pianoRollColumn);
+
     FeatureSet transcribe(const Grid &);
 
     string noteName(int n) const;