Skip to content

Commit

Permalink
correct waveshaper function select error / same with compressor type
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrecco67 committed May 3, 2024
1 parent 666b226 commit 945ff86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1428,9 +1428,9 @@ void APAudioProcessor::updateParams(int newBlockSize)

if (activeEffects.contains(1)) {
waveshaper.setGain(modMatrix.getValue(waveshaperParams.drive), modMatrix.getValue(waveshaperParams.gain));
waveshaper.setDry(modMatrix.getValue(waveshaperParams.dry));
waveshaper.setDry(modMatrix.getValue(waveshaperParams.dry));
waveshaper.setWet(modMatrix.getValue(waveshaperParams.wet));
waveshaper.setFunctionToUse(int(waveshaperParams.type->getValue()));
waveshaper.setFunctionToUse(waveshaperParams.type->getUserValueInt());
waveshaper.setHighShelfFreqAndQ(modMatrix.getValue(waveshaperParams.highshelf), modMatrix.getValue(waveshaperParams.hsq));
waveshaper.setLPCutoff(modMatrix.getValue(waveshaperParams.lp));
}
Expand All @@ -1446,7 +1446,7 @@ void APAudioProcessor::updateParams(int newBlockSize)
);
compressor.setInputGain(modMatrix.getValue(compressorParams.input));
compressor.setOutputGain(modMatrix.getValue(compressorParams.output));
compressor.setMode((gin::Dynamics::Type)(int)compressorParams.type->getValue());
compressor.setMode((gin::Dynamics::Type)compressorParams.type->getUserValueInt());
}

auto& notes = gin::NoteDuration::getNoteDurations();
Expand Down

0 comments on commit 945ff86

Please sign in to comment.