• 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: Sequencer project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sequencer project


  • Subject: Re: Sequencer project
  • From: Patrick Muringer <email@hidden>
  • Date: Tue, 17 Aug 2010 10:01:33 +0200

Hi,

If I try to summarize what I've red until now on this list it may be useful for everyone having the wish to create a step seq:
For a one track seq,
1. Use a NSTimer that triggers each bufSize (init in Main thread)
2. Use AudioUnit to play samples or to use a SW synth (init in Main thread, use it in "timed thread")
3. Fill with 0 an inBuf when nothing has to be played (in "timed thread")
4. Check if time > 60 / (tickPerBeat * bpm) (in "timed thread")
4.a if no, fill with 0 or with what was previously
4.b if yes, get the "Sample" samples and fill inBuf
5. Check in we arrived at Nbeat and loop (set time to 0) if yes. (in "timed thread")


Does it sound correct?
Could it make sense for anyone to create a quick tutorial/project for such a simple example, maybe as an extension of the wonderfull one made by timbolstad?


Thanks for your help.

Patrick
_______________________________________________
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: Sequencer project
      • From: Aran Mulholland <email@hidden>
References: 
 >Re: Sequencer project (From: McD <email@hidden>)

  • Prev by Date: How to get dB values for music getting played in MPMusicPlayer
  • Next by Date: Re: Sequencer project
  • Previous by thread: Re: Sequencer project
  • Next by thread: Re: Sequencer project
  • Index(es):
    • Date
    • Thread