[share] how to delete clips with M4L

Learn about building and using Max for Live devices.
ring (Simon Slowik)
Posts: 121
Joined: Fri Oct 30, 2009 3:35 pm

Re: [share] how to delete clips with M4L

Post by ring (Simon Slowik) » Mon Jan 25, 2010 10:07 pm

well, there's nobody who could tell better than you, after TRYING IT OUT! :)

Markemark
Posts: 250
Joined: Mon Jun 22, 2009 3:51 pm

Re: [share] how to delete clips with M4L

Post by Markemark » Fri Feb 05, 2010 8:42 am

I see you send an 8 to your object for backspace/delete, what numbers should we send your object to get ctrl shift m? Cheers!

ring (Simon Slowik)
Posts: 121
Joined: Fri Oct 30, 2009 3:35 pm

Re: [share] how to delete clips with M4L

Post by ring (Simon Slowik) » Fri Feb 05, 2010 10:00 am

Have a look at that list:

http://java.sun.com/j2se/1.5.0/docs/api ... vent.VK_F1

You can send a list to the keyPress-object in order to press multiple keys at one time.

circuitb
Posts: 115
Joined: Fri Dec 30, 2005 11:11 am

Re: [share] how to delete clips with M4L

Post by circuitb » Fri Feb 05, 2010 12:30 pm

could be nice to implement this function directly in the apc40 or the LP (not sure control surface scripts support keyboard msg)
for ex : if you press metronome butt(hold) + the desired clip slot (matrix) => delete
for the focus problem (live not selected) is there something in max to list the available opened windows
and to select the one named or containing "Live 8" (name in title bar)
what do you think?
_________________

ring (Simon Slowik)
Posts: 121
Joined: Fri Oct 30, 2009 3:35 pm

Re: [share] how to delete clips with M4L

Post by ring (Simon Slowik) » Fri Feb 05, 2010 4:51 pm

I think, this is not a matter of ableton but java. The keystroke always has effect on the window that is in front / highlighted.

If you don't want to have ableton in front but still want to use the given delete-object, you might go that way: use java to bring ableton to front, delete the clip and then again put the other program in front.

But I guess this will be quiet buggy...

Markemark
Posts: 250
Joined: Mon Jun 22, 2009 3:51 pm

Re: [share] how to delete clips with M4L

Post by Markemark » Tue Feb 09, 2010 5:12 am

ring wrote:Have a look at that list:

http://java.sun.com/j2se/1.5.0/docs/api ... vent.VK_F1

You can send a list to the keyPress-object in order to press multiple keys at one time.
Ring it does work great!! I through a list at it and it was able to do ctrl shift m. Though I had only tested your patch by it self, once I incorporated it into a bigger patch I had some serious cpu hits or something because my audio would start dropping out after the patch was banged. I used tomatoe_joe's version and it worked a charm. His only change is the delay object is replaced by defer so maybe this could have caused some cpu problems. From what I read defer has something to do with cpu priority and the overdrive in max, anyway thanks again to ring and tomatoe_joe!!!!

yannxou
Posts: 153
Joined: Fri Feb 27, 2004 8:39 pm
Location: Barcelona
Contact:

Re: [share] how to delete clips with M4L

Post by yannxou » Thu Feb 18, 2010 11:29 pm

Why this has to be so complicated?

I think this should be as easy as sending 'call delete' to the corresponding ClipSlot ID. Then all the window-focus problems would disappear.

I hope Ableton/Cycling74 will map all the standard menu actions in the maxforlive API soon.
Live 12.1 Suite / M1 MacBook Pro 16" / 32Gb RAM
https://soundcloud.com/bachstripvoice

Markemark
Posts: 250
Joined: Mon Jun 22, 2009 3:51 pm

Re: [share] how to delete clips with M4L

Post by Markemark » Fri Feb 19, 2010 3:22 am

yannxou wrote:Why this has to be so complicated?

I think this should be as easy as sending 'call delete' to the corresponding ClipSlot ID. Then all the window-focus problems would disappear.

I hope Ableton/Cycling74 will map all the standard menu actions in the maxforlive API soon.
Good question!!! Try working with M4L and a control surface, pure torture!! even the "Official" ableton controllers are not even documented in the LOM, not sure if this is a ableton or c74 problem but people are even starting to blame Akai. :(

Post Reply