Quantize help

Mar 17, 2009 at 1:07pm

Quantize help

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

#42894
Mar 17, 2009 at 1:54pm

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.

best,
Zachary

#153566
Mar 17, 2009 at 2:26pm

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!

#153567
Mar 17, 2009 at 4:21pm

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.

best,
Zachary

#153568
Mar 17, 2009 at 4:52pm

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-
http://www.cycling74.com/forums/index.php?t=msg&rid=2723&S=e32a343792ed21f2c00b419130be0a10&th=34991&goto=149287#msg_149287

#153569
Mar 17, 2009 at 5:37pm

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

best,
Zachary

#153570
Mar 17, 2009 at 7:38pm

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

#153571
Mar 17, 2009 at 7:48pm

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. –
#153572

You must be logged in to reply to this topic.