Closed teotigraphix closed 5 years ago
You forgot to set a step size (note how I totally rephrased "I forgot to document this thing properly" ;) )
What you did so far is absolutely correct:
Now the missing bit is setStepSize() which accepts an integer value describing the amount of buffer samples to process before shifting to the next step. This is the same value as used for event position and duration (you can similarly use the "float beat"-logic here). E.g. at a 44.1 kHz sample rate and tempo of 120 BPM, to make the arpeggiator step once per beat / quarter note you specify the step size as:
arpeggiator.setStepSize(( 44100 * 60 ) / 120 );
Thanks Igor, that makes sense. :)
Moved discussion here into its own Wiki article for future reference.
Hey!
I have been studying this code and cannot seem to understand how or what triggers the Arppegiator.
Simple setup;
I get what it's doing but I can't get it to do it. :) I have sequenced 1 audio event for a synth for 8 steps in a 16 step grid for tests.
I also have the sequencer controller playing.