Re: Timing mechanism for MIDI ?
Re: Timing mechanism for MIDI ?
- Subject: Re: Timing mechanism for MIDI ?
- From: "Marcelo Cicconet" <email@hidden>
- Date: Mon, 8 Dec 2008 06:56:56 -0800
Hi.
I have exactly the same problem. For now I'm using a NSTimer initialized at the awakeFromNib method (see bellow) witch is used to update a counter. The counter is the MIDI events manager.
But I'd also like to know if there is a better solution.
Marcelo C.
- (void) awakeFromNib
{
timeInterval = 0.01;
counter = [[BMCounter alloc] initWithTimeInterval:timeInterval];
timer = [[NSTimer scheduledTimerWithTimeInterval:timeInterval
target:self
selector:@selector(updateCounters:)
userInfo:nil
repeats:YES] retain];
[[NSRunLoop currentRunLoop] addTimer:timer forMode:NSDefaultRunLoopMode];
}
On Mon, Dec 8, 2008 at 5:33 AM, Aengus Martin
<email@hidden> wrote:
Hi,
Has anyone any advice as to which core-audio or cocoa timing mechanism might be best for keeping time in a real time MIDI application? I have a number of threads which generate MIDI data algorithmically and I want them all to be triggered by some central clock so that they are always synchronized with each other.
Thanks,
Aengus.
____________________
www.am-process.org
_______________________________________________
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
--
KEEP WORKING
_______________________________________________
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