How to trigger audio samples and regular very short intervals in iOS
user40424 Published in September 21, 2018, 8:11 am
Hi just looking for some advice / guidance on this. I need to trigger some audio samples (standard 44.1KHz 16Bit stereo Wav / AIFF files max of about 1.2 Seconds long). These need to be triggered at regular intervals for musical purposes so if the user sets Beats Per Minute (BPM) to 120 and the note value to 1 then the time intervals would be 2000mS, with a note value of 4 this would be 500mS and so on down to a note value of 32 which would be 62.5mS.
What would be the best way of achieving this? Would it be to run a timer that elapses every 62.5mS - run some checks and play the relevant sample? or is there a better way?
ios audio timer
share|improve this question
asked Feb 12 at 11:07
Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.
Browse other questions tagged ios audio timer or ask your own question.