Switch to cmake

This commit is contained in:
Roland Rabien 2023-08-23 08:45:23 -07:00
commit 1a375b0ad5
19 changed files with 1083 additions and 1007 deletions

View file

@ -7,13 +7,11 @@ class WavetableAudioProcessor;
//==============================================================================
class WavetableVoice : public gin::SynthesiserVoice,
public gin::ModVoice
public gin::ModVoice
{
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;
@ -25,7 +23,7 @@ public:
void setCurrentSampleRate (double newRate) override;
void renderNextBlock (AudioBuffer<float>& outputBuffer, int startSample, int numSamples) override;
void renderNextBlock (juce::AudioBuffer<float>& outputBuffer, int startSample, int numSamples) override;
bool isVoiceActive() override;
@ -37,10 +35,12 @@ private:
WavetableAudioProcessor& proc;
gin::BandLimitedLookupTables& bandLimitedLookupTables;
gin::WTVoicedStereoOscillator wtOscillators[Cfg::numWTs];
gin::BLLTVoicedStereoOscillator oscillators[Cfg::numOSCs] =
{
bandLimitedLookupTables,
bandLimitedLookupTables,
bandLimitedLookupTables,
bandLimitedLookupTables,
};
gin::Filter filters[Cfg::numFilters];
@ -52,9 +52,7 @@ private:
gin::AnalogADSR adsr;
float currentMidiNotes[Cfg::numWTs + Cfg::numOSCs];
gin::WTVoicedStereoOscillator::Params wtParams[Cfg::numWTs];
float currentMidiNotes[Cfg::numOSCs];
gin::BLLTVoicedStereoOscillator::Params oscParams[Cfg::numOSCs];
gin::EasedValueSmoother<float> noteSmoother;