I am trying to decide how best to manage a couple of ideas in my code flow and could use some advice on how to create the sequencing for my multi track sequencer.
Should I have a ~gen for each track that has all of it’s own track data and I call ~gen track1, then ~gen track 2, etc? Or is it better to have a higher level setup that would consist of a main loop that contains: 1) global for all of the tracks, 2) get button / knob states, 3) process tracks, 4) set LEDs. And inside of the “process tracks” I would then sequence each track in that pass?
One last thought: How do I ensure that the sequencers start playing several samples at the same time? For example: if all sequencers were playing the same audio file they would all start at the same time? (if that is even possible).
overall I am asking these questions because I have the basics going for my single track sequencer and I would like to take the next steps to extend this to 2, then 4, then 8 tracks. Thus, arranging this in a reasonable way is somewhat of a mystery to me as I am not quite used to programming on a DSP.
Any thoughts, help, or suggestions would be greatly appreciated.