mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Simplify plugin
This commit is contained in:
parent
2e8de090a2
commit
5bbbac164c
7 changed files with 95 additions and 391 deletions
|
|
@ -10,7 +10,7 @@ class WavetableVoice : public gin::SynthesiserVoice,
|
|||
public gin::ModVoice
|
||||
{
|
||||
public:
|
||||
WavetableVoice (WavetableAudioProcessor& p, gin::BandLimitedLookupTables& bandLimitedLookupTables);
|
||||
WavetableVoice (WavetableAudioProcessor& p);
|
||||
|
||||
void noteStarted() override;
|
||||
void noteRetriggered() override;
|
||||
|
|
@ -27,24 +27,17 @@ public:
|
|||
|
||||
bool isVoiceActive() override;
|
||||
|
||||
float getFilterCutoffNormalized (int idx);
|
||||
float getFilterCutoffNormalized();
|
||||
|
||||
private:
|
||||
void updateParams (int blockSize);
|
||||
|
||||
WavetableAudioProcessor& proc;
|
||||
gin::BandLimitedLookupTables& bandLimitedLookupTables;
|
||||
|
||||
gin::BLLTVoicedStereoOscillator oscillators[Cfg::numOSCs] =
|
||||
{
|
||||
bandLimitedLookupTables,
|
||||
bandLimitedLookupTables,
|
||||
bandLimitedLookupTables,
|
||||
bandLimitedLookupTables,
|
||||
};
|
||||
gin::WTVoicedStereoOscillator oscillators[Cfg::numOSCs];
|
||||
|
||||
gin::Filter filters[Cfg::numFilters];
|
||||
gin::ADSR filterADSRs[Cfg::numFilters];
|
||||
gin::Filter filter;
|
||||
gin::ADSR filterADSR;
|
||||
|
||||
gin::ADSR modADSRs[Cfg::numENVs];
|
||||
gin::LFO modLFOs[Cfg::numLFOs];
|
||||
|
|
@ -53,7 +46,7 @@ private:
|
|||
gin::AnalogADSR adsr;
|
||||
|
||||
float currentMidiNotes[Cfg::numOSCs];
|
||||
gin::BLLTVoicedStereoOscillator::Params oscParams[Cfg::numOSCs];
|
||||
gin::WTVoicedStereoOscillator::Params oscParams[Cfg::numOSCs];
|
||||
|
||||
gin::EasedValueSmoother<float> noteSmoother;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue