From ae4adc612231af2e498ebb6f9e21f165c1aa6cde Mon Sep 17 00:00:00 2001 From: Gordon JC Pearce Date: Fri, 22 Aug 2025 23:04:38 +0100 Subject: [PATCH] output scaling --- plugin/tonewheel.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin/tonewheel.cpp b/plugin/tonewheel.cpp index ec61c0c..dd2414c 100644 --- a/plugin/tonewheel.cpp +++ b/plugin/tonewheel.cpp @@ -55,12 +55,17 @@ void Tonewheel::deactivate() { void Tonewheel::run(const float**, float** outputs, uint32_t frames, const MidiEvent* ev, uint32_t evCount) { - for (uint32_t i = 0; i < evCount; i++) { assigner->handleMidi((MidiEvent*)&ev[i]); } generator->run(outputs[0], frames); + + // scale the final output and copy to right channel + for(uint32_t i=0; i