Working on wt

This commit is contained in:
Roland Rabien 2020-05-21 21:39:47 -07:00
commit d858a10fc9
8 changed files with 89 additions and 14 deletions

View file

@ -11,7 +11,9 @@ class WavetableVoice : public gin::SynthesiserVoice,
{
public:
WavetableVoice (WavetableAudioProcessor& p, gin::BandLimitedLookupTables& bandLimitedLookupTables);
void setWavetable (int idx, OwnedArray<gin::BandLimitedLookupTable>& table);
void noteStarted() override;
void noteRetriggered() override;
void noteStopped (bool allowTailOff) override;
@ -35,7 +37,8 @@ private:
WavetableAudioProcessor& proc;
gin::BandLimitedLookupTables& bandLimitedLookupTables;
gin::VoicedStereoOscillator oscillators[Cfg::numOSCs] =
gin::WTVoicedStereoOscillator wtOscillators[Cfg::numWTs];
gin::BLLTVoicedStereoOscillator oscillators[Cfg::numOSCs] =
{
bandLimitedLookupTables,
};
@ -49,8 +52,10 @@ private:
gin::AnalogADSR adsr;
float currentMidiNotes[Cfg::numOSCs];
gin::VoicedStereoOscillator::Params oscParams[Cfg::numOSCs];
float currentMidiNotes[Cfg::numWTs + Cfg::numOSCs];
gin::WTVoicedStereoOscillator::Params wtParams[Cfg::numWTs];
gin::BLLTVoicedStereoOscillator::Params oscParams[Cfg::numOSCs];
gin::EasedValueSmoother<float> noteSmoother;