Mercurial > hg > silvet
comparison src/Silvet.h @ 316:f3e10617a60d livemode
Live mode enhancements: Adjust processing parameters (for speed) and peak-pick pitch activations across frequency (to avoid neighbouring-semitone clusters)
author | Chris Cannam |
---|---|
date | Tue, 28 Apr 2015 12:21:40 +0100 |
parents | f98ba4f47e49 |
children | c37da62ba4e5 |
comparison
equal
deleted
inserted
replaced
315:dec47312ed40 | 316:f3e10617a60d |
---|---|
69 FeatureSet process(const float *const *inputBuffers, | 69 FeatureSet process(const float *const *inputBuffers, |
70 Vamp::RealTime timestamp); | 70 Vamp::RealTime timestamp); |
71 | 71 |
72 FeatureSet getRemainingFeatures(); | 72 FeatureSet getRemainingFeatures(); |
73 | 73 |
74 enum ProcessingMode { // ordered so draft==0 and hq==1 as in prior releases | |
75 DraftMode = 0, | |
76 HighQualityMode = 1, | |
77 LiveMode = 2, | |
78 }; | |
79 | |
74 protected: | 80 protected: |
75 const std::vector<InstrumentPack> m_instruments; | 81 const std::vector<InstrumentPack> m_instruments; |
76 const std::vector<InstrumentPack> m_liveInstruments; | 82 const std::vector<InstrumentPack> m_liveInstruments; |
77 | 83 |
78 const InstrumentPack &getPack(int instrument) const { | 84 const InstrumentPack &getPack(int instrument) const { |
85 | 91 |
86 Resampler *m_resampler; | 92 Resampler *m_resampler; |
87 FlattenDynamics *m_flattener; | 93 FlattenDynamics *m_flattener; |
88 CQSpectrogram *m_cq; | 94 CQSpectrogram *m_cq; |
89 | 95 |
90 enum ProcessingMode { // ordered so draft==0 and hq==1 as in prior releases | |
91 DraftMode = 0, | |
92 HighQualityMode = 1, | |
93 LiveMode = 2, | |
94 }; | |
95 ProcessingMode m_mode; | 96 ProcessingMode m_mode; |
96 | 97 |
97 bool m_fineTuning; | 98 bool m_fineTuning; |
98 int m_instrument; | 99 int m_instrument; |
99 int m_colsPerSec; | 100 int m_colsPerSec; |