Clip create/delete, wrong focus on clip slot? [solved]
Posted: Sat Jun 04, 2011 2:28 am
Hello!
I'm new to M4L, it seems to be a really amazing platform. But I have some (probably basic) problem with my device and I kindly ask you for some hints.
I would like to build a device that will allow me to create and delete clips on selected slots via MIDI CC (and additionaly to navigate through liveset). I created a simple device that looks like this:

I used M4L.api for navigation and ring_keyPress for clip create/delete. And it kind of works. Navigation is ok and it does translate MIDI CC mapping to keystrokes (backspace and ctrl+shift+M) correctly.
The problem is that I can only create or delete clips when I first mouse click on the clip slot (so the clip slot background/play arrow background becomes orange, instead of light brownish, on the crossing of light grey indicators).
In other words I can only create/delete clips when clip slot looks like this:


And what I get using navigation is this:


Now, I do realize that this is some kind of proper focus on a clip slot problem but I couldn't find any useful clue in the helpfile. Could anyone tell me how can I fix that?
Thanks in advance!
Bless!
Update:
Ok, I managed to fix that with simple call focus_view Session.
Have a lazy weekend people.
Bless!
I'm new to M4L, it seems to be a really amazing platform. But I have some (probably basic) problem with my device and I kindly ask you for some hints.
I would like to build a device that will allow me to create and delete clips on selected slots via MIDI CC (and additionaly to navigate through liveset). I created a simple device that looks like this:

I used M4L.api for navigation and ring_keyPress for clip create/delete. And it kind of works. Navigation is ok and it does translate MIDI CC mapping to keystrokes (backspace and ctrl+shift+M) correctly.
The problem is that I can only create or delete clips when I first mouse click on the clip slot (so the clip slot background/play arrow background becomes orange, instead of light brownish, on the crossing of light grey indicators).
In other words I can only create/delete clips when clip slot looks like this:


And what I get using navigation is this:


Now, I do realize that this is some kind of proper focus on a clip slot problem but I couldn't find any useful clue in the helpfile. Could anyone tell me how can I fix that?
Thanks in advance!
Bless!
Update:
Ok, I managed to fix that with simple call focus_view Session.
Have a lazy weekend people.
Bless!