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:
@@ -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;
|
||||||
|
|||||||
4
Resources/Changelog/Parts/midi.yml
Normal file
4
Resources/Changelog/Parts/midi.yml
Normal 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.
|
||||||
Reference in New Issue
Block a user