Page 1 of 1

"On Midi" script

Posted: 21 Aug 2012 10:04
by peeddrroo
hi

i'm having a weird problem.
what i'm trying to do is to build a simple script that will reset a Lemur knob when pressing a button on my hardware controler (Novation SL MkII).
i'm using it with Ableton Live.
the harware button sends MidiCC 36 on Midi Ch 14, and the Knob i want to set to 0 when pressing this button is MidiCC 12 Ch 15 (its name is Knob3)

so i created an object, with a script that goes like this:

------------------------------------------------------------------------------------------
Execution: On MIDI B0-Control Change Midi0 36 to 36 14 to 14

Knob3.x=0;
------------------------------------------------------------------------------------------

I expect the Knob3 to be set to 0 when pressing the button.
the problem i have is that almost any action I have on the controler will reset the Knob, and even clicking on Live's GUI makes the Knob reset.
did i make something wrong with the "On MIDI" line?
i tried to find an answer on the forums and user manual but couldn't find any. i hope someone will be able to help!