Forums > MaxMSP

Quantize help

Mar 17 2009 | 1:07 pm

I’m writing a vj app for the monome and i need to work out a way of quantizing button presses (received via OSC) to say 1/32, 1/16, 1/8 etc beats.
I’ve only been using max for about 1.5 months now so im not very advanced so a nice example would help me no end.

Thanks a lot guys, if you need more info let me know.
Thanks again.

Mar 17 2009 | 1:54 pm

This might work for you. Just replace the quantized MIDI data with your own messages. I’ve attached a slightly modified version of the global transport patch that comes with Max5.


Mar 17 2009 | 2:26 pm

This looks great thanks! Im guessing i could modify the sync_metro patcher to sync to a midi clock/send out midi clock?

Also it won’t work with lists. The button data is, far example,
1 4 0

But i’m pretty sure i could think of a way using gates and packing/unpacking.

I haven’t actually tried to put it in my patch and i find it hard to work stuff out unless its infront of me!

I’ll be back soon with my outcome.

Thanks again!

Mar 17 2009 | 4:21 pm

If you want lists to work with this patch, just send them through a [tosymbol] object before going into the [mxj list.Group], and then after the iter object, add a [fromsymbol]. Let me know if this makes sense.


Mar 17 2009 | 4:52 pm

You can also simply use pipe now. Here is a patch that Andrew Pask posted on another thread about quantization.

— Pasted Max Patch, click to expand. —

Here is a link to that thread-

Mar 17 2009 | 5:37 pm

Thanks Nick and Andrew, this is much better. Forgot about the new pipe functionality. Simple.


Mar 17 2009 | 7:38 pm

Looks great. This is probably a stupid question:
How is the transport and metro cnnected to the pipe?
Do i have to change both the pipe value and the metro value to change the quatize amount?

Thanks guyys Smile

Mar 17 2009 | 7:48 pm

The transport/metro thing is just there as an example. The toggle button is turning both transport and metro on at the same time.

All of the objects are ‘connected’ behind the scenes using the (new to Max 5) metrical timing. Take a look at Max Tutorial 19 for an overview.

If you want to change the quantize value of the pipe object, use the ‘quantize’ message.

Here is the same patch with a umenu to change the quantize value-

— Pasted Max Patch, click to expand. —
Viewing 8 posts - 1 through 8 (of 8 total)

Forums > MaxMSP