MIDI bank is set after the MIDI program

Fixes bug regarding incorrect program for the first few notes of some MIDI tracks.
This commit is contained in:
Vera Aguilera Puerto
2022-04-09 15:32:12 +02:00
parent 514cd2df58
commit 1bc599b683
2 changed files with 5 additions and 1 deletions

View File

@@ -93,8 +93,8 @@ public sealed class InstrumentSystem : SharedInstrumentSystem
if (!instrument.AllowProgramChange)
{
instrument.Renderer.MidiProgram = instrument.InstrumentProgram;
instrument.Renderer.MidiBank = instrument.InstrumentBank;
instrument.Renderer.MidiProgram = instrument.InstrumentProgram;
}
instrument.Renderer.LoopMidi = instrument.LoopMidi;