• 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: What sort of timer should I use for my sequencer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What sort of timer should I use for my sequencer?


  • Subject: Re: What sort of timer should I use for my sequencer?
  • From: Morgan Packard <email@hidden>
  • Date: Sat, 15 Jan 2011 14:19:29 -0700

Cool. Thanks Greg.
-Morgan

On Sat, Jan 15, 2011 at 1:42 PM, Gregory Wieber <email@hidden> wrote:
Morgan,

This has been covered extensively in past discussions here. (Search for coreaudio mailing list entries on 'metronome', 'sequencer', etc.) Counting samples is the most accurate way to go. 

best,

Greg

On Sat, Jan 15, 2011 at 12:39 PM, Morgan Packard <email@hidden> wrote:
I've been calculating time by simply counting samples (each time I calculate a sample, I tick my time count forward) and dividing by sample rate. I suspect this isn't the best way. It seems to me that it would be better to have a sequencer running in in a separate thread from my audio generation code. NSTimer would be my first choice, but is not accurate enough for music. How can I set up a timer which is accurate enough for music?

thanks,

-Morgan

--
================================
Web:
http://www.morganpackard.com

Music/Art:
Album Moment Again Elsewhere available Oct 11.
iOS app Thicket available on iTunes store.
================================


 _______________________________________________
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


 _______________________________________________
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



--
================================
Web:
http://www.morganpackard.com

Music/Art:
Album Moment Again Elsewhere available Oct 11.
iOS app Thicket available on iTunes store.
================================

 _______________________________________________
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

References: 
 >What sort of timer should I use for my sequencer? (From: Morgan Packard <email@hidden>)
 >Re: What sort of timer should I use for my sequencer? (From: Gregory Wieber <email@hidden>)

  • Prev by Date: Re: What sort of timer should I use for my sequencer?
  • Next by Date: Re: What sort of timer should I use for my sequencer?
  • Previous by thread: Re: What sort of timer should I use for my sequencer?
  • Next by thread: Re: What sort of timer should I use for my sequencer?
  • Index(es):
    • Date
    • Thread