Hi,
I just signed up to these forums to help me with my new found hobby in c++
I'm wanting to iterate 16 steps through a loop at a specific tempo/bpm. I know in the Arduino environment there is the millis() statement used with an if statement but I'm struggling with c++.
At some point I want to develop audio dsp applications on ARM STM32.
Do I have to set some kind of clock speed?
for instance - 1 x 16 step sequence would include 96 pulses/cycles. (standard 24pulses per quarter note.)
if the sequence was running at 120beats per minute then:
120 * 96 = 11,520 pulses/cycles
11,520 / 60s = 192 hz
so I know how to sort of get my clock/tempo but how do I get a loop to run at this tempo and also execute some code at each step in the sequence?
I've been reading BasicSynth, and a beginners guide to DSP as well as C++ and I'm currently doing a video course on c++ on udemy to help me, if anyone has any other recommendations in this field that would help it would be a great help.
P