Skip to content

Commit

Permalink
fix(DmPerformance): set the reset value to the current control value …
Browse files Browse the repository at this point in the history
…if no reset is required
  • Loading branch information
lmichaelis committed May 1, 2024
1 parent 7a79bda commit e2cf145
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Performance.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e2cf145

Please sign in to comment.