mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 22:05:20 -04:00
winmidi: add more resets
Fixes reset in Virtual Sound Canvas VST v1.60
This commit is contained in:
parent
e90b7702e8
commit
96d61b805c
@ -231,12 +231,18 @@ static void ResetDevice(void)
|
||||
// reset pan to 64 (center)
|
||||
SendShortMsg(MIDI_EVENT_CONTROLLER | i, 0x0a, 0x40);
|
||||
|
||||
// reset reverb to 40 and other effect controllers to 0
|
||||
SendShortMsg(MIDI_EVENT_CONTROLLER | i, 0x5b, winmm_reverb_level); // reverb
|
||||
SendShortMsg(MIDI_EVENT_CONTROLLER | i, 0x5c, 0x00); // tremolo
|
||||
SendShortMsg(MIDI_EVENT_CONTROLLER | i, 0x5d, winmm_chorus_level); // chorus
|
||||
SendShortMsg(MIDI_EVENT_CONTROLLER | i, 0x5e, 0x00); // detune
|
||||
SendShortMsg(MIDI_EVENT_CONTROLLER | i, 0x5f, 0x00); // phaser
|
||||
// reset bank select MSB
|
||||
SendShortMsg(MIDI_EVENT_CONTROLLER | i, 0x00, 0x00);
|
||||
|
||||
// reset bank select LSB
|
||||
SendShortMsg(MIDI_EVENT_CONTROLLER | i, 0x20, 0x00);
|
||||
|
||||
// reset program change
|
||||
SendShortMsg(MIDI_EVENT_PROGRAM_CHANGE | i, 0x00, 0x00);
|
||||
|
||||
// reset reverb and chorus
|
||||
SendShortMsg(MIDI_EVENT_CONTROLLER | i, 0x5b, winmm_reverb_level);
|
||||
SendShortMsg(MIDI_EVENT_CONTROLLER | i, 0x5d, winmm_chorus_level);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user