From e2cf145aa3fe5aa75fba43533845c9899d0c1ea8 Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Wed, 1 May 2024 09:04:49 +0200 Subject: [PATCH] fix(DmPerformance): set the reset value to the current control value if no reset is required --- src/Performance.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Performance.c b/src/Performance.c index 6a09de8..b244b72 100644 --- a/src/Performance.c +++ b/src/Performance.c @@ -826,6 +826,8 @@ static void DmPerformance_handleMessage(DmPerformance* slf, DmMessage* msg) { DmSynth_sendControl(&slf->synth, msg->control.channel, msg->control.control, msg->control.value); if (msg->control.reset) { DmSynth_sendControlReset(&slf->synth, msg->control.channel, msg->control.control, msg->control.reset_value); + } else { + DmSynth_sendControlReset(&slf->synth, msg->control.channel, msg->control.control, msg->control.value); } Dm_report(DmLogLevel_TRACE,