Page 1 of 1

ON MIDI scripts working only for notes starting from "0" why

Posted: 24 Nov 2015 18:08
by szymonfortuna
Hello Lemur Community again!
I keep trying to achieve a visual feedback of ableton project in arrangement view for live gig purpose.
With the great help I received so far, I'm one step from achieving the goal!

I attached the lemur project along with ableton simulation of different song sections represented by midi clips.

The script (midiOn) uses light array to show the current section triggered by a midi note from ableton.
It works great when the scripts are On MIDI notes starting from "0" (blue pads)

If I want to create pads for ex. another song (grey pads) where midi notes start from "4", I don't get any results.

Can anyone check the simulation and would be able to help? I don't know what to do anymore. It seems like the scripts are just fineā€¦

Many Thanks!

Re: ON MIDI scripts working only for notes starting from "0"

Posted: 07 Dec 2015 02:15
by szymonfortuna
Hello,
I'm still struggling with the one question. Please any help anyone?
"Why this script work only for pads starting from 0
(onMIDI , note On, 0-24, ch 3) if note from 25-49 it freaks out? What this script is missing?"
I'll be more than grateful for the support!

Code: Select all

decl i = MIDI_ARGS[0]; //Get curent midi note

decl size = getattribute(Screen1,'row')*getattribute(Screen1,'column'); //decl the size of the pad object

decl lightarray = fill(0,0,size); //creates a vector the size of the padobject and fill it with 0's.
lightarray[i] = 0.35; //sets the current note played light to 1
light = lightarray; //Sets the light of the pad object to the lightarray we've just created