Triggering to play in a tempo?

Jamcob's icon

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

e.g.

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.

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

Here's one way.

Jamcob's icon

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?

brendan mccloskey's icon

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......

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

Brendan

Wetterberg's icon

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.

Christopher Dobrian's icon

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

@Wetterberg
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.