Source/PluginProcessor.cpp
void PluginProcessor::setParameter(int parameterIndex, float newValue)
{
    AudioProcessor::setParameter(parameterIndex, newValue);

    parameters.UpdateWorkingValuesFromPluginParameters();
    oscillator.setWaveform(parameters.waveform);

    PluginEditor* pEditor = (PluginEditor*)getActiveEditor();
    if (pEditor) pEditor->update();
}
// Handling parameter automation changes requires that we overload AudioProcessor::setParameter(),
// which is about to be deprecated.
Handling parameter automation changes requires that we overload AudioProcessor::setParameter(),
which is about to be deprecated.
Handling parameter automation changes requires that we overload AudioProcessor :: setParameter () which is about to be deprecated .
void PluginProcessor::setParameter(int parameterIndex, float newValue)
{
    AudioProcessor::setParameter(parameterIndex, newValue);
    parameters.UpdateWorkingValuesFromPluginParameters();
    oscillator.setWaveform(parameters.waveform);
    PluginEditor* pEditor = (PluginEditor*)getActiveEditor();
    if (pEditor) pEditor->update();
}
void PluginProcessor :: setParameter ( int parameterIndex , float newValue ) { AudioProcessor :: setParameter ( parameterIndex , newValue ) ; parameters . UpdateWorkingValuesFromPluginParameters ( ) ; oscillator . setWaveform ( parameters . waveform ) ; PluginEditor * pEditor = ( PluginEditor * ) getActiveEditor ( ) ; if ( pEditor ) pEditor -> update ( ) ; }
Handling parameter automation changes requires that we overload AudioProcessor::setParameter(),
which is about to be deprecated.
Handling parameter automation changes requires that we overload AudioProcessor :: setParameter () which is about to be deprecated .