From 017193661b0b1c77ae59c190898d75f9aa005b9c Mon Sep 17 00:00:00 2001 From: Roman Pudashkin Date: Tue, 7 Jan 2025 13:53:58 +0200 Subject: [PATCH] Fluid: always send CC events without checking for value equality For example, there may be several notes with the Sostenuto pedal and we want to reapply it to all the notes --- .../audio/internal/synthesizers/fluidsynth/fluidsynth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/audio/internal/synthesizers/fluidsynth/fluidsynth.cpp b/src/framework/audio/internal/synthesizers/fluidsynth/fluidsynth.cpp index 199776174c6d4..be09725c408d8 100644 --- a/src/framework/audio/internal/synthesizers/fluidsynth/fluidsynth.cpp +++ b/src/framework/audio/internal/synthesizers/fluidsynth/fluidsynth.cpp @@ -179,7 +179,7 @@ bool FluidSynth::handleEvent(const midi::Event& event) if (event.index() == muse::midi::EXPRESSION_CONTROLLER) { ret = setExpressionLevel(event.data()); } else { - ret = setControllerValue(event.channel(), event.index(), event.data()); + ret = fluid_synth_cc(m_fluid->synth, event.channel(), event.index(), event.data()); } } break; case Event::Opcode::ProgramChange: {