• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Timing mechanism for MIDI ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Timing mechanism for MIDI ?
      • From: William Stewart <email@hidden>
References: 
 >Timing mechanism for MIDI ? (From: "Aengus Martin" <email@hidden>)

  • Prev by Date: Timing mechanism for MIDI ?
  • Next by Date: Guardmalloc breaks after AudioQueueDispose
  • Previous by thread: Timing mechanism for MIDI ?
  • Next by thread: Re: Timing mechanism for MIDI ?
  • Index(es):
    • Date
    • Thread