Can someone provide an example of a midi channel message that would set the instrument to be a piano?
This is how I currently try to set the instrument for the channel, but it doesn't seem to be working:
var inMessage = MIDIChannelMessage(status: 0xB0, data1: 120, data2: 0, reserved: 0)
MusicTrackNewMIDIChannelEvent(track1!.internalMusicTrack!, 1, &inMessage)
inMessage = MIDIChannelMessage(status: 0xC0, data1: 48, data2: 0, reserved: 0)
MusicTrackNewMIDIChannelEvent(track1!.internalMusicTrack!, 1, &inMessage)