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 6f8f6ccde3.
This commit is contained in:
Daniel Konar 2023-12-14 02:07:55 +01:00 committed by GitHub
parent 8c5cc950b8
commit 45fb9378eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;