From 45fb9378eb454970958819959ba69acdb0c1ac9b Mon Sep 17 00:00:00 2001 From: Daniel Konar Date: Thu, 14 Dec 2023 02:07:55 +0100 Subject: [PATCH] Matches preview playback with midi volume input when enabled (#1636) * Uncomment line which enables midi input preview playback Tested with various chip and logged, the results match what goes to the column * Revert operator spacing * Move midi input processing from playback to gui to allow correct input volume playback * Revert "Move midi input processing from playback to gui to allow correct input volume playback" This reverts commit 6f8f6ccde38629f00e5847a04b39152939c063f3. --- src/engine/playback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/playback.cpp b/src/engine/playback.cpp index 6aa17ef45..0f90d0ac1 100644 --- a/src/engine/playback.cpp +++ b/src/engine/playback.cpp @@ -1372,7 +1372,7 @@ bool DivEngine::nextTick(bool noAccum, bool inhibitLowLat) { } if (note.on) { dispatchCmd(DivCommand(DIV_CMD_INSTRUMENT,note.channel,note.ins,1)); - //dispatchCmd(DivCommand(DIV_CMD_VOLUME,note.channel,(note.volume*(chan[note.channel].volMax>>8))/127)); + dispatchCmd(DivCommand(DIV_CMD_VOLUME,note.channel,(note.volume*(chan[note.channel].volMax>>8))/127)); dispatchCmd(DivCommand(DIV_CMD_NOTE_ON,note.channel,note.note)); keyHit[note.channel]=true; chan[note.channel].releasing=false;