Multiple tracks syncing

Emil Løvø Thomsen's icon

Hi Cycling74 forum :)

I'm currently in the middle of a project where I'm using input from Arduino to begin a track playing in Max. That part is fine and dandy, but I'm currently having some trouble with getting multiple tracks to synchronize properly.

Previously, we were using playlist objects, and that synchronized properly, but was unable to get the correct form of interaction we wanted from Arduino. Hence, we are now using buffer/groove objects, but we are unable to get multiple tracks to sync properly.

The tracks should start by the press of a button, and ideally be synchronized (like playing all the time, but unmuted when button is pressed). The tracks are different instruments, that together create this instrumental piece.

Max Patch
Copy patch and select New From Clipboard in Max.

I hope you can help us :)

Florent Ghys's icon

hey you could use a multi-channel sfplay~. Like sfplay~ 6 is you want 6 tracks. There is a file merger app somewhere online.
Or you can also use a phasor~ for metronome, and use a proportional rate~ and play~ to read the files.
If you are using Max7 you could also use the @followglobaltempo 1 attribute
hope this helps