Problem syncing counters

Yot Magnet's icon

Hi !

I'm building a sequencer with separate tracks. I want to control subdivision of the tempo and steps for each tracks. All the tracks are synced on a master tempo. My issue is that I can't re-sync counters when I get back to the same subdivisions. How can I do that ?
(I've done this easily with Reaktor..)

Thanks for your help.

Here's a patch that explain that :

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

the_man361's icon

have you considered using [globaltransport] and [tempo] to handle your timing systems? i think they will work better.

Yot Magnet's icon

Yeah, [tempo] is quite what I already done. But I don't know [globaltransport]. It it an Max object ? Where can I get it ?

seejayjames's icon

you might also look into [%], the modulus, which can readily create bangs every nth number from a counter, no matter how high it's counting:
[% 4]
[sel 0]
--> bangs every 4 beats

Use these bangs to reset other counters as needed, by sending a bang to the middle or fourth inlet, depending on when you want to reset. You can use a [gate] on the bang to allow the user to choose whether the subdivision counter resets with the main one.

The other object mentioned is [transport] which has a lot of these things built-in.

the_man361's icon

yes just type in globaltransport as a max object, and then double click it when its locked.

Yot Magnet's icon

Thanks for your advices.

I used modulus but it's quite the same thing as [metro 4n] (for ex).
I used [transport] : usefull.

But I still can't sync my counters. I think I missed a thing here. Maybe there's something to do with the fourth Inlet as seejayjames said but don't know how to get something non-messy.

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

Here's a new patch that reveal my issue :

broc's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here is a modification of your patch as a possible solution.

broc's icon
Max Patch
Copy patch and select New From Clipboard in Max.

And here is a completely different solution without using counters.

Yot Magnet's icon

Thanks.The second patch is exactly what I wanted.
I didn't get the whole thing but I'll figure it out.