I’m currently working on a step sequencer audio application based on a metronome tempo.
Some audio samplers are listening the metronome callbacks (triggered at each beat) and the listener classes will play a sample sound at each call.
I developed the metronome (sample accurate) and it work well. I would like to add some groove / offset option on it in order to offset the trigger of the sound a little before / after the beat.
Having the same offset on all the beat is straightforward but how could I handle different offsets in a sequence of 8 beats?
I’m totally lost on how to architecture it and I didn’t find any exemple of it.
Let say the following step sequence:
and with some offsets:
Any advice on how to handle it and the best practice to use?