Forums > MaxMSP

Triggering to play in a tempo?

Jan 09 2012 | 5:58 pm

Hey all, I was wondering if anyone knew how to take a received bang to then only trigger to a tempo..?


I click bang to play a note but that message waits for the next bar of the tempo to come around.

similar to Ableton live style of triggering, so my note will play in time with a backing track which has a specific tempo etc.

Jan 09 2012 | 6:17 pm

Here’s one way.

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

Jan 09 2012 | 6:41 pm

this is great but does not allow me to set a specific tempo as far as I can see. I could be wrong.

Not a problem if there isn’t a way to change it, but do you know what tempo it is counting to?

Jan 09 2012 | 8:19 pm

In addition to Christopher’s elegantly concise solution, you can send [transport] the ‘tempo $1′ message, which will also be reported out its 5th outlet. Never use tempo sequencing stuff myself – but I always use objects’ helpfiles ;) – which is why I often feel guilty of hijacking when I do this……

— Pasted Max Patch, click to expand. —


Jan 09 2012 | 8:31 pm

don’t we just do:

[pipe @quantize 16n @delaytime 0 ticks]

or, if we want single-bar quantization:

[pipe @quantize 1n @delaytime 0 ticks]

That’s what I do, anyways.

Jan 10 2012 | 2:46 am

@n00b_meister & @Jamcob
Yes, what n00b_meister said. ‘tempo’ is an attribute of the transport, so you can also initialize it with @.

Absolutely. Many ways to skin that cat. And your way is best especially if you want to queue up multiple notes for the next downbeat.

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

Forums > MaxMSP