clip_trigger_quantization of selected clips with M4L?

Learn about building and using Max for Live devices.
nbyte
Posts: 26
Joined: Wed Jan 23, 2013 7:48 pm

clip_trigger_quantization of selected clips with M4L?

Post by nbyte » Fri May 10, 2013 9:25 pm

Hi,

I'm building a M4L-Patch to chop clips with push. So far everything works fine. Only one thing I would like to add: I want to set the clip_trigger_quantization of the selected clip with push!

I have looked in the API but I found only a property of song but nothing for clips.

Are their other tricks how I can realize this?

wehkah
Posts: 498
Joined: Sun Jan 06, 2008 4:19 pm
Location: Germany
Contact:

Re: clip_trigger_quantization of selected clips with M4L?

Post by wehkah » Sat May 25, 2013 9:06 am

It is not possible to set the properties for the follow actions / clip quantization. I hope this will come with future updates.

I recommend you to use this API doc to find the function you need there is a MAX patch called LOM Tester which is very helpfull too!

http://cycling74.com/docs/max5/refpages ... model.html

http://www.maxforlive.com/library/devic ... lom-tester


cheers
T
Motto: sharing knowledge...

https://soundcloud.com/bytechop

chapelier fou
Posts: 6025
Joined: Mon May 15, 2006 12:15 pm

Re: clip_trigger_quantization of selected clips with M4L?

Post by chapelier fou » Sat May 25, 2013 9:09 am

fire(record_length, launch_quantization)
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

S4racen
Posts: 5839
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: clip_trigger_quantization of selected clips with M4L?

Post by S4racen » Sat May 25, 2013 9:13 am

chapelier fou wrote:fire(record_length, launch_quantization)
Interesting! How?

Cheers
D

chapelier fou
Posts: 6025
Joined: Mon May 15, 2006 12:15 pm

Re: clip_trigger_quantization of selected clips with M4L?

Post by chapelier fou » Sat May 25, 2013 10:48 am

it's new in L9 (see LOM changes).
I've played a bit with this, it works pretty well. Record length is in beats (float) and launch quantization, well i can't remember. It's pretty easy to figure out what the syntax is, though.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

S4racen
Posts: 5839
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: clip_trigger_quantization of selected clips with M4L?

Post by S4racen » Sun May 26, 2013 7:50 am

Just found it, pretty cool!

Cheers
D

chapelier fou
Posts: 6025
Joined: Mon May 15, 2006 12:15 pm

Re: clip_trigger_quantization of selected clips with M4L?

Post by chapelier fou » Sun May 26, 2013 8:56 am

my pleasure !
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

nbyte
Posts: 26
Joined: Wed Jan 23, 2013 7:48 pm

Re: clip_trigger_quantization of selected clips with M4L?

Post by nbyte » Thu May 30, 2013 1:26 pm

Thanks to all for the infos.
I will test it ...

nbyte
Posts: 26
Joined: Wed Jan 23, 2013 7:48 pm

Re: clip_trigger_quantization of selected clips with M4L?

Post by nbyte » Mon Jun 03, 2013 6:02 pm

fire(record_length, launch_quantization)
I have problem using it!

When I use "call fire(float, float)" I get the MAX message:

"live.object: 'Clip' object has no attribute 'fire(1.'
live.object: doesn't understand "1.)"

How to use it right?

Thanks in advance....

chapelier fou
Posts: 6025
Joined: Mon May 15, 2006 12:15 pm

Re: clip_trigger_quantization of selected clips with M4L?

Post by chapelier fou » Mon Jun 03, 2013 8:02 pm

remove the brackets i guess ?
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

regretfullySaid
Posts: 8913
Joined: Thu Apr 22, 2010 5:50 pm

Re: clip_trigger_quantization of selected clips with M4L?

Post by regretfullySaid » Wed Apr 16, 2014 1:46 am

I can't get firing with the launch_quantization to work. I'm not sure if it only works for a blank slot because I think you have to provide a setting for record_length even if I just want to launch without quantization.

Is anyone able to launch the clip with no quantization using this setting? I understand I can change the clip's global quantization but it's more ideal to override 'per fire' in this situation.

I've tried 'call fire 0 0' and variations between one or 2 ints/floats but no luck.
ImageImage

chapelier fou
Posts: 6025
Joined: Mon May 15, 2006 12:15 pm

Re: clip_trigger_quantization of selected clips with M4L?

Post by chapelier fou » Wed Apr 16, 2014 7:08 am

I am having the exact same problem. The only conclusion i made is that you have to specify a recording_length as well, which makes the patching really more complicated, as max will display an error message when you're just launching a clip and not recording.
In my opinion, call fire 0 0 should just work as expected.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

dataf1ow
Posts: 230
Joined: Wed Oct 08, 2008 4:28 pm

Re: clip_trigger_quantization of selected clips with M4L?

Post by dataf1ow » Wed Apr 16, 2014 9:16 pm

You could quantize the fire message using onebang and plugsync~

regretfullySaid
Posts: 8913
Joined: Thu Apr 22, 2010 5:50 pm

Re: clip_trigger_quantization of selected clips with M4L?

Post by regretfullySaid » Wed Apr 16, 2014 9:30 pm

I was actually quantizing the fire using 'pipe' and ''delay'. The reason I mentioned both is because between the 2 the actual 'quantize' settings for both objects don't seem to do their job. The closest I got to actually quantizing the message to fire was using 'pipe i'; the 'i' standing for integer. Well, that's the only time I could actually get the message to quantize, but it also gives a 'bad number' error. So, if I use a 'pipe 1' (or 0 or any int), it doesn't quantize, and when I use 'i' it does quantize. SMH. What I ended up doing was use a 't b l b' to
1. set live_set clip_quantization to 0
2. fire the clip
3. set clip_quantization back to whatever setting it was at previously, by banging an int that receives the clip_quantization observation (but filter out zero so it doesn't receive 0)

I shouldn't have to do that if there's supposed to be an option to override the clip_launch in the clip setting. So why is it there?
But that isn't the only lack of function lying dormant that's documented in the API.

Still can't do some scrolling,
changing grid_quantization doesn't work,
a couple other little things,

yet funnily enough, even though M4L is supposed to be more 'legitimately supported' than python scripting, you can do some things with scripting the API that you can't do with M4L.
So, you can either reap that benefit by learning python, or not have that functionality not provided by the add-on you paid an extra couple hundred for.
And even though M4L is upposed to be legitimate support for hacking the API they won't directly talk about it at all. Woohoo!
Last edited by regretfullySaid on Wed Apr 16, 2014 9:35 pm, edited 1 time in total.
ImageImage

dataf1ow
Posts: 230
Joined: Wed Oct 08, 2008 4:28 pm

Re: clip_trigger_quantization of selected clips with M4L?

Post by dataf1ow » Wed Apr 16, 2014 9:34 pm

So why don't you use plugsync~ and onebang? I've used this to quantize recording, button presses and sample launching with great success.

Post Reply