Instrument change exported to midi
Musescore doesn't place Program_c events in the middle of the midi file.
I have a one stave test score, which starts with a voice sound. After a few bars I change the instrument to a flute.
When I export it to a midi file, the midi file contains two channels. The instrument of each channel seems to be set in the beginning of the exported file, with time code 0. Then come the Note_on events. First we have the first channel Note_on events. After a few bars they end, then come the Note_on events of the second channel.
So the exported midi doesn't actually contain the exact moment of the instrument change. Am I right?
My issue with this is that I'd need the Program_c event to occur at the very same point where I place it in the score. I'm working on automating an old pump organ and I'd love to write all music using Musescore. A program change would mean pulling one organ stop and maybe pushing another. Therefore I'd need the midi events to happen where I place them in the score and not in the beginning. Can I use any other note that actually causes a midi event at the corresponding moment in the exported midi file?