Forums > MaxMSP

Problem syncing counters

Feb 08 2010 | 6:59 pm

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 :

— Pasted Max Patch, click to expand. —
Feb 08 2010 | 8:28 pm

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

Feb 08 2010 | 8:36 pm

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

Feb 08 2010 | 8:42 pm

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.

Feb 08 2010 | 8:48 pm

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

Feb 09 2010 | 10:46 am

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.

Here’s a new patch that reveal my issue :

— Pasted Max Patch, click to expand. —
Feb 09 2010 | 11:41 am

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

-- Pasted Max Patch, click to expand. --

Feb 09 2010 | 1:39 pm

And here is a completely different solution without using counters.

-- Pasted Max Patch, click to expand. --

Feb 10 2010 | 2:04 pm

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

Viewing 9 posts - 1 through 9 (of 9 total)

Forums > MaxMSP