Mercurial > hg > silvet
diff src/Silvet.h @ 298:ebe5e0942bb8 livemode
More toward a possible live mode
author | Chris Cannam |
---|---|
date | Fri, 28 Nov 2014 10:18:22 +0000 |
parents | d6ab1b4918bd |
children | cac0be04c43c |
line wrap: on
line diff
--- a/src/Silvet.h Fri Nov 28 09:42:56 2014 +0000 +++ b/src/Silvet.h Fri Nov 28 10:18:22 2014 +0000 @@ -73,7 +73,16 @@ protected: const std::vector<InstrumentPack> m_instruments; + const std::vector<InstrumentPack> m_liveInstruments; + const InstrumentPack &getPack(int instrument) const { + if (m_mode == LiveMode) { + return m_liveInstruments[instrument]; + } else { + return m_instruments[instrument]; + } + } + Resampler *m_resampler; FlattenDynamics *m_flattener; CQSpectrogram *m_cq;