Mercurial > hg > silvet
diff src/Silvet.h @ 252:34e69544691b norm
Make use of input gain information to adjust output note velocities back to original levels
author | Chris Cannam |
---|---|
date | Wed, 23 Jul 2014 10:20:07 +0100 |
parents | 70773820e719 |
children | e5f897b2d5e8 |
line wrap: on
line diff
--- a/src/Silvet.h Tue Jul 22 18:41:09 2014 +0100 +++ b/src/Silvet.h Wed Jul 23 10:20:07 2014 +0100 @@ -88,7 +88,7 @@ vector<MedianFilter<double> *> m_postFilter; vector<map<int, double> > m_pianoRoll; vector<map<int, int> > m_pianoRollShifts; - vector<float> m_inputGains; + map<Vamp::RealTime, float> m_inputGains; Grid preProcess(const Grid &); @@ -101,6 +101,11 @@ void emitNote(int start, int end, int note, int shiftCount, FeatureList ¬eFeatures); + Feature makeNoteFeature(int start, int end, int note, int shift, + int shiftCount, int velocity); + + float getInputGainAt(Vamp::RealTime t); + FeatureSet transcribe(const Grid &); string noteName(int n, int shift, int shiftCount) const;