Posts

Post not yet marked as solved
2 Replies
0 Views
I tried both variations: load my MIDI file in the sequencer with the AVMusicSequenceLoadOptions.smf_ChannelsToTracks option and listen to both the tempoTrack and the last track of the tracks array. I would expect to receive meta messages on either this last track or tempoTrack, because the doc states: /** @typedef AVMusicSequenceLoadOptions @abstract Determines whether data on different MIDI channels is mapped to multiple tracks, or if the tracks are preserved as-is. @discussion If AVMusicSequenceLoadSMF_ChannelsToTracks is set, the loaded MIDI Sequence will contain a tempo track, one track for each MIDI channel that is found in the SMF, and one track for SysEx and/or MetaEvents (this will be the last track in the sequence). If AVMusicSequenceLoadSMF_ChannelsToTracks is not set, the loadad MIDI Sequence will contain one track for each track that is found in the SMF, plus a tempo track (if not found in the SMF). API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0), tvos(9.0)) */ use MIDIDestinationCreateWithProtocol as MIDIDestinationCreateWithBlock is deprecated for iOS 14+ Unfortunately with no success.
Post not yet marked as solved
21 Replies
0 Views
Same here with Xcode 9.0 (9A235)