quantizing bangs.

nedrush's icon

can i send a bang, or a number, or a message, but have it actually execute on the next available beat? say 1n or something? i've looked into a bit on certain patches that use quantization, mainly midi related, but wondered if there was a simple way to do it with with basic commands...

thanks
ned
:)

Floating Point's icon

You can use [delay] as a way of quantizing bangs I think. But there would be better ways too
T

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

try this, maybe it will help...

nedrush's icon

thanks for that, but really i only want to send a bang once quantized to a beat, rather than repetitively as it does here, or at least that what i think its going on. really i want to bang a number once but do it on the next down beat, or to a value of 1n etc... any thoughts?

thanks
ned
:)

Christopher Dobrian's icon
nedrush's icon

brilliant!

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

Have you checked out the onebang object?

Christopher Dobrian's icon

BTW, don't discount Terry's suggestion about the delay object. "delay 0.0.0 @quantize 1n" will do what you asked for.

seejayjames's icon

timepoint is cool and is news to me. thanks for the tip!

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

some other ideas:

dhjdhjdhj's icon

I can't see what other ideas were just suggested (I'm writing from an iPad) but I'm wondering why one couldn't just combine a gate with an = operator fed directly from the beat of that transport object such that whenever the beat is "1", the gate would let a bang through.

Did I miss something ?

Christopher Dobrian's icon

That would let a bang through any time it occurs during the whole first beat of a measure, rather than holding it and synchronizing it exactly on the instant of the first beat, as I think the original poster specified.

dhjdhjdhj's icon

I didn't realize that the transport didn't actually send values out unless you explicitly requested them.

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

However, here's a cleaner version that just uses route and sends a bang only each time the beat is '1' and only the first time it becomes '1'

Noisey Parker's icon

I am having a similar issue ... changing the quantization of the delay object dynamically isn't working for me - can anyone see what I am doing wrong?

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