Multiple Timepoint values
Hi,
I'm creating a complicated drum machine / metronome application. The GUI is using another language and the 'sound engine' I made in Max. The sound engine consists of a transport, metro, and it generates midi notes.
I'm looking to trigger events at specific points in time using the Bar.Beat.Unit format. The GUI sends the list of values as, for example, "1.1.240 1.2.240 1.3.240 1.4.240" (1/8th notes). I figured the timepoint object is appropriate but I notice that it supports only a single value. How would I go about creating timeppoints for many points in time? The list of times coming from the GUI can be small or large (1 to 200)...
Thanks!
As the helpfile points out, setting a new timepoint is a matter of sending a message to the timepoint object. Getting the next timepoint would be a trivial matter - indexing through a coll, etc.
This thread might be helpful:https://cycling74.com/forums/multiple-times-for-timepoint-object/
Thanks Gregory and Christopher. Not a trivial matter for a noob, so I posted to ensure I did things properly. Thanks for the tips!
I have a follow up question if that's ok...
In my data I can have overlapping timepoints, such as in a real drum beat, for example, when a hihat and snare could be triggered at the same time. I've therefore separated the data into 3 separate patchers, one for each drum pad, each with its own coll and transport objects. This means I need to manage 3 separate transports, and more if I expand to a 'bigger' drum kit. Is there a better way?? From my attempts/research, I could only have a single timepoint object linked to a single transport object.