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) if (!instrument.AllowProgramChange)
{ {
instrument.Renderer.MidiProgram = instrument.InstrumentProgram;
instrument.Renderer.MidiBank = instrument.InstrumentBank; instrument.Renderer.MidiBank = instrument.InstrumentBank;
instrument.Renderer.MidiProgram = instrument.InstrumentProgram;
} }
instrument.Renderer.LoopMidi = instrument.LoopMidi; instrument.Renderer.LoopMidi = instrument.LoopMidi;

View File

@@ -0,0 +1,4 @@
author: Zumorica
changes:
- type: Fix # One of the following: Add, Remove, Tweak, Fix
message: Fix bug where sometimes instruments would have the incorrect MIDI program for the first few notes.