Fix ToneGen automation.

This commit is contained in:
James Crook 2018-02-16 12:49:47 +00:00 committed by Paul Licameli
parent 89cd4aef88
commit aae9349f2e
1 changed files with 4 additions and 0 deletions

View File

@ -262,6 +262,10 @@ bool EffectToneGen::DefineParams( ShuttleParams & S ){
} else {
S.SHUTTLE_PARAM( mFrequency[0], Frequency );
S.SHUTTLE_PARAM( mAmplitude[0], Amplitude );
// Slightly hacky way to set freq and ampl
// since we do this whatever query to params was made.
mFrequency[1] = mFrequency[0];
mAmplitude[1] = mAmplitude[0];
}
wxArrayString waves( nWaveforms, kWaveStrings );
wxArrayString interps( nInterpolations ,kInterStrings );