Hi all, this is a long shot but does anyone know how to write a midi file and give it an instrument from a soundfont?
I've called methods like
NewMusicSequence
MusicSequenceGetTempoTrack
MusicTrackNewExtendedTempoEvent
MusicSequenceNewTrack
to create the track
and MusicSequenceFileCreateData to turn it into data so it can be written out.
but when I write it out, it always appears to have no music instrument.
how does one write a midi file with a music instrument?
I've called methods like
NewMusicSequence
MusicSequenceGetTempoTrack
MusicTrackNewExtendedTempoEvent
MusicSequenceNewTrack
to create the track
and MusicSequenceFileCreateData to turn it into data so it can be written out.
but when I write it out, it always appears to have no music instrument.
how does one write a midi file with a music instrument?