Program Change not sent in MidiAction?
I'm trying to use Staff Text to select a Channel and Midi Action to access a patch in an SF3 soundfont. The MidiAction in the XML definition file has a controller element to set the bank select LSB followed by a program element to set the patch. This structure works perfectly in a Channel element, but in the MidiAction element, I get no sound. I snooped in MIDI-OX and found that MS is sending the Control Change but not the Program Change. Am I missing something? Here is a snip from my instrument XML.
<Channel name="Great"> <MidiAction name="1-Trumpet8'"> <controller ctrl="32" value="0"/> <program value="1"/> </MidiAction> </Channel>
Comments
Check how is is done for "mute"
In reply to Check how is is done for … by Jojo-Schmitz
Thanks for the suggestion. Mute is selected with a Program element inside a Channel element. My Program element is inside a MidiAction element, which is in turn inside a Channel element. I am trying to achieve this hierarchy because it better reflects the instrument — and because when I set up all the patches as Channels, MS slows to a crawl (there are hundreds of them).
In reply to Thanks for the suggestion… by johnvh
One works, the other does not...
In reply to One works, the other does… by Jojo-Schmitz
Evidently. In that case, I suggest the documentation be revised to so state, because it shows Program as a valid child of the MidiAction element.
In reply to Evidently. In that case, I… by johnvh
Where?
In reply to Where? by Jojo-Schmitz
https://musescore.org/en/handbook/developers-handbook/references/instru…
In reply to https://musescore.org/en… by johnvh
It is (like) a Wiki, you can edit it.