API-functions "quantize" and "get_notes" -how to format messages??
i’m trying to use the functions "call quantize" and "call get_notes" on a live.object to manipulate midinotes in a clip.
My problems are the parameters:
"quantization_grid [int] and amount [double]" for quantize
and "from_time [double] , from_pitch [double] ,time_span [double] ,pitch_span [double] " for get_notes
I’m not able to find the right format for this messages, i’ve tried many variations of numbers after "calll quantize" but the max-window always says "invalid arguments. ‘quantize…’ ,
for example "call quantize 1 100" for quantization grid 1n at 100% amount doesn’t work…
Also with "get_notes" i have no luck… is it necessary to to use all arguments or can i just use the time related when the pitch doesnt matter? My purpose is to select all notes in the loop-range of a clip.
I’ve searched the Max-documentations but didn’t find out which mistake(s) i’ve done…
Can someone give me an example for this??
many thanks in advance!!!!
sorry for bumping this one again, but i still have problems with the "quantize" call..
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 875.3oc0X1saaBCEG+ZpTeGr35zHrMPfcS01qwzTjAbIthXxvNoYsZu6ye.I oKoCBEncWj.3OO7ymyw+Mub6MNtIk6oBWvW.eG337hpDGSY5RbZJvwcMYeZA QXZn6ZpPPxotypqTR2KMUvx.dGJ8gRtjSVSM070JFo.7sxhrC0y2ttbqrfJM CJroXVloCkIOdGN7UClf8rYvfdy8ZJ2NBxesgZeEbcA+notMDY5JFOeYEMUZ qF6iU8EffKzWBzCD.FN26XmTVEi2XTHSg+91azWUWl0YDkVtdMkKOGQOshkt BnLsU.l.vozLZ188jYGnvCU4IlBNBlSwneqX7BnxGBMzAFYtTypn2jUvgmUL 9NRgxmhTkuU2BA39wFU39fpv4AJepffwFTb5SJi7bNUv1QmqpQaPCXzGbni9 PwKzjBacoBhaATnlREjczrk1WvkDorhkrUZSZ4bjUNtK2PqDLgjxSoGIcCp6 ExUSjrjeMT6XBvynSBgm2R9Irw6IJzjkxq4+o0SRmbpm9Q3KPDTbO7ilU+qK zBF4a7mfSdfmDj.J5IpPWBUQWOpLNUy5XnGxy3YgQ5GFET8uzF.GvrSH+gN6 DDuXZzF7lHxnJPGBtTPkfcL5SfLpjvJVlVv1XKPe2b8cCIKQCtNq5HSrMQFL 7bXljmVVTVYau27X+.u3nY56TKDn.8c9dKh7wpNNkKB4JzmWwxV9ysDtj8LQ xNYCfA.1i01pnPeqfMzz64lRJJ.0.iBfp2lg7b.vngFY2YC0WXNMPbzmNuyq V1AL38H6nN02GqriAW.KbvizBLgV+OoecJE5A8FKgd09miuPudt07.5zFMRx Zp2JF5uXz1cXpTIiGKQxwmJ.7p0HaalJxhe12SyLW5J9K7IJ2Vk1Xi0q9fSl uLpPx3VEHGajNN6zVshkkQ4u5qbjwDjjBpgYdu8BZmsKrWWLLsNxo1v5DvhZ 0tVyx1Tx3x5UNnm8a53a2K7v8mLSivKBr0WD3qa0D.X8o2amv5uT6mRCCEM4 tjlor0kR7GvRYmxtnOexTSLTmLr3o2vfcx4e5IFraaT7AXXAcwvl9fRXm1.C +I0tzerq2QxhZkIjMa1oOfgcns1jRA2i1i4FNy9Liae1JN0shti0zEqneWRk R3jToZZakUE29nPWUMlIT82e.XcxH4. -----------end_max5_patcher-----------
someone here who can have a look?
–sorry double post–
Die you find out how to format the get_notes parameters?
the call in your patch works for me
on the right you have to use this path: path live_set tracks 0 clip_slots 0 clip view
the numbers represent witch track an clip_slot
I was struggling with formatting the quantize command too. The quantize_grid parameter was tricky to figure out, but I found the answer in the description for the midi_recording_quantization function. In the LOM document there is a table of quantization values like this:
4: 1/8 + 1/8T
7: 1/16 + 1/16T
quantization_grid wants any whole number between 1 – 8 and amount wants a double in the range of 0.0 – 1.0.
Forums > Max For Live