mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Switch to cmake
This commit is contained in:
parent
d858a10fc9
commit
1a375b0ad5
19 changed files with 1083 additions and 1007 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue