|
From: <sag...@us...> - 2010-03-09 22:16:15
|
Revision: 523
http://modplug.svn.sourceforge.net/modplug/?rev=523&view=rev
Author: saga-games
Date: 2010-03-09 22:16:06 +0000 (Tue, 09 Mar 2010)
Log Message:
-----------
[Fix] Note Off for VSTis was broken when the MIDI CC bug emulation was enabled.
Modified Paths:
--------------
trunk/OpenMPT/soundlib/Sndmix.cpp
Modified: trunk/OpenMPT/soundlib/Sndmix.cpp
===================================================================
--- trunk/OpenMPT/soundlib/Sndmix.cpp 2010-03-09 20:25:43 UTC (rev 522)
+++ trunk/OpenMPT/soundlib/Sndmix.cpp 2010-03-09 22:16:06 UTC (rev 523)
@@ -2004,9 +2004,12 @@
if(GetModFlag(MSF_MIDICC_BUGEMULATION))
{
- if((note >= NOTE_MIN) && (note <= NOTE_MAX))
+ if(note)
{
- pPlugin->MidiCommand(pIns->nMidiChannel, pIns->nMidiProgram, pIns->wMidiBank, pIns->NoteMap[note - 1], pChn->nVolume, nChn);
+ MODCOMMAND::NOTE realNote = note;
+ if((note >= NOTE_MIN) && (note <= NOTE_MAX))
+ realNote = pIns->NoteMap[note - 1];
+ pPlugin->MidiCommand(pIns->nMidiChannel, pIns->nMidiProgram, pIns->wMidiBank, realNote, pChn->nVolume, nChn);
} else if (volcmd == VOLCMD_VOLUME)
{
pPlugin->MidiCC(pIns->nMidiChannel, MIDICC_Volume_Fine, vol, nChn);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|