changing pipe @quantize values elegantly
Hi all,
I have what for me is a bit of a head-scratcher here.
Long story shortish:
I'm making a patch with separate buttons to trigger MIDI note ons and note offs independently (controlling STEIM's LiSa), with the option of having those events quantized to one of four different musical values- whole note, half, quarter and eighth, relative to the Transport position. I have this working fine with one quantize value at a time defined in the Pipe objects I'm using, but what I can't figure out is how to elegantly change the value of the @quantize attribute in the Pipe using some other object sending menu-selected numbers to it. Is this even possible?
The point is to have a menu for switching between my four desired quantize values to control all Pipes in the patch so that I can change the "global quantization value" for MIDI events generated in the patch, relative to Transport.
In a moment of desperation, I hopefully tried using "@quantize $i2" in the hopes that sending musical values e.g. 4n to the second inlet of a pipe with that definition would allow me to change quantize values on the fly, but no such luck.
Feel free to laugh and point if I'm missing something obvious here, but I could really use some guidance.
Thanks much.
I'm not in front of Max at the moment, but I would assume that you could just send the pipe object a "quantize 4n" message, and that should take care of it. (i.e. omit the @)
an attribute in an object
@foo something
Is always settable by a message
foo somethingelse
If not - let's see it
-A
OK guys, thanks a lot.
So far, so good- sending the message as you suggested works fine for changing attributes. I appreciate the fast response. I can probably RTFM for the rest of the stuff that arises (hopefully), but it's nice to know there are such friendly and helpful people here for those "stumped" moments...
cheers
peter freeman