Program Change not sent in MidiAction?

• Feb 8, 2021 - 21:52

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

In reply to 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).

Do you still have an unanswered question? Please log in first to post your question.