Add missing function

This commit is contained in:
Roland Rabien 2024-06-28 09:59:49 -07:00
commit c5d67c2f99
4 changed files with 9 additions and 3 deletions

View file

@ -474,3 +474,8 @@ gin::WTOscillator::Params WavetableVoice::getLiveWTParams (int osc)
p.bend = getValue (proc.oscParams[osc].bend);
return p;
}
float WavetableVoice::getCurrentNote()
{
return noteSmoother.getCurrentValue() * 127.0f;
}

View file

@ -20,7 +20,9 @@ public:
void noteTimbreChanged() override;
void notePitchbendChanged() override;
void noteKeyStateChanged() override {}
float getCurrentNote() override;
void setCurrentSampleRate (double newRate) override;
void renderNextBlock (juce::AudioBuffer<float>& outputBuffer, int startSample, int numSamples) override;