Working with the CoreAudio Clock
Working with the CoreAudio Clock
- Subject: Working with the CoreAudio Clock
- From: Tom Jeffries <email@hidden>
- Date: Sat, 30 Apr 2011 11:06:15 -0700
I'm writing a MIDI sequencer that updates and changes the MIDI datastream in real time. I'd like to do playback by means of a function that is called by the CoreAudio clock. However, I find almost no source code that uses the CoreAudio Clock, and when I look at CoreAudioClock.h I find the following messages the clock can deliver to the clock handling subroutine:
kCAClockMessage_StartTimeSet
kCAClockMessage_Started
kCAClockMessage_Stopped
kCAClockMessage_Armed
kCAClockMessage_Disarmed
kCAClockMessage_PropertyChanged
kCAClockMessage_WrongSMPTEFormat
I'm expecting to be able to set a tempo in seconds/beats/etc. and get a callback on every tick, but I don't see any way to set that up. Am I missing something here?
Maybe it will help if I put it a different way. The program is creating MIDI output in real time based on user input. I want to have a clock routine with relatively low latency come in every beat and see what the user input has been, then send data based on that input. Can I do that with CoreAudio Clock?
Thanks for any responses!
Tom Jeffries
_______________________________________________
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