MIDI chunk - how does coreAudio/MusicSequence handle the Division of a MIDI MThd header?
MIDI chunk - how does coreAudio/MusicSequence handle the Division of a MIDI MThd header?
- Subject: MIDI chunk - how does coreAudio/MusicSequence handle the Division of a MIDI MThd header?
- From: Ian OKeeffe <email@hidden>
- Date: Mon, 27 Feb 2006 15:11:23 +0000
- Thread-topic: MIDI chunk - how does coreAudio/MusicSequence handle the Division of a MIDI MThd header?
Title: MIDI chunk - how does coreAudio/MusicSequence handle the Division of a MIDI MThd header?
Hi there,
I am trying to work out the length of a beat in pulses from the Division value in the MThd chunk, but where does coreAudio store this value? This is a requirement for looking at the MusicSequence in terms of bars and beats, rather than timestamps.
I was working in raw C with the mf2t code, where it is easy to go straight to a value, but am trying to switch to using MusicSequence. Tempo info can be found if there is a Meta event in the MIDI file, but the Division is always supplied as part of a MIDI file, as a resolution for pulses per quarter note. Is it stored in the MIDI Chunk, and if so, where?
If anyone has any code examples they would be much appreciated.
Kind regards,
ian0
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden