Visual feedback of Ableton Project, issue with Locators...

Discuss problems and solutions.
Post Reply
szymonfortuna
Newbie
Posts: 15
Joined: 22 Oct 2015 13:39

Visual feedback of Ableton Project, issue with Locators...

Post by szymonfortuna »

The goal is to have a visual feedback of the song sections I'm currently playing.

I try to use midi clips in Ableton arrangement view with a note to send midi back to lemur which highlights the pad for the duration of the section. The problem starts when I start to use locators to be able to jump from one section to another. I get some weird loop.

I desperately look for a help to solve this issue. Here's the setup:

1. Create 3 one bar midi clips next to eachother (Ableton arrangement view).
2. Place midi notes from 0-2 and make each of them last for 1 bar.
3. In lemur create a group of 3 pads with the midi on notes 0-2
In ableton loop the whole section so you can see the feedback in lemur.

What happens at this point all pads give visual feedback but when a clip ends, the pad doesn't turn off.

To solve this I found a script "On midi note off, notes 0-2 etc
decl i=MIDI_ARGS[0];
x=0;

As you noticed, it solved the problem at first.

4. At the beginning of each midi clip create a locator
5. Assign the same notes to each of the locators by pressing the pads.

THIS IS WHERE I GET THE LOOP
Is there a way to solve the issue at this point?
I appreciate any help!
szymonfortuna
Newbie
Posts: 15
Joined: 22 Oct 2015 13:39

Re: Visual feedback of Ableton Project, issue with Locators.

Post by szymonfortuna »

Hello, I Prepared an Ableton test project with a lemur template. Maybe that would help somebody to help me.
Attachments
Lemur Visual Feedback.zip
(15.15 KiB) Downloaded 70 times
ndivuyo
Regular
Posts: 278
Joined: 23 May 2014 00:24

Re: Visual feedback of Ableton Project, issue with Locators.

Post by ndivuyo »

It's a little hard for me to tell what you want exactly.
What it sounds like is that you want the pads to remain on or "lit up" for each section (verse, chorus, bridge) until it exits a section.
Then you should use the "light" variable or "colors" attribute to manage this. Pads stay lit up until you release them by default. Use light or colors to display visual feedback.

To affect light variable is easy. Manage it like the "x" array of values:
light = 1;

Colors is a little trickier, but way more versatile. You will have to make an array of your color values and then assign the array to the colors attribute (you cannot just individual assign a pad color):
//Code (loop) to pack an array of RGB color values
setattribute(padsObject, "colors", colorArray);

Then on your Midi note off/on events you can change the light variable or Colors attribute. Affecting "x" variable for visual feedback isn't the right way cuz it will MIDI send data and conflict

Hope that helps!
Post Reply