Mercurial > hg > silvet
diff src/Silvet.h @ 343:460cabb27bf7
Make the onset/offset output consistent with the notes output in terms of restarting notes when a shift changes
author | Chris Cannam |
---|---|
date | Wed, 12 Aug 2015 14:50:30 +0100 |
parents | 705d807ca2ca |
children | a3fc6e1f2d4e |
line wrap: on
line diff
--- a/src/Silvet.h Mon Jul 06 09:15:21 2015 +0100 +++ b/src/Silvet.h Wed Aug 12 14:50:30 2015 +0100 @@ -124,15 +124,13 @@ FeatureChunk noteTrack(); // notes, on/offsets - void emitNote(int start, int end, int note, - FeatureList ¬eFeatures); + void emitNoteAndOffset(int start, int end, int note, + FeatureList ¬eFeatures, + FeatureList &onOffsetFeatures); void emitOnset(int start, int note, FeatureList &onOffsetFeatures); - void emitOffset(int start, int end, int note, - FeatureList &onOffsetFeatures); - Vamp::RealTime getColumnTimestamp(int column); Feature makeNoteFeature(int start, int end, int note, int shift, double strength);