novation Lunchpad (MK1) LED Controll from WD

Moderator: Moderator Group

novation Lunchpad (MK1) LED Controll from WD

Postby Daniel Kaminski » Mon Oct 24, 2016 1:48 pm

Hi here is how you controll novation lunchpad MK1 (not the RGB MK2 Version)

The MK1 Version has on green and red LEDs which can be used at at different brightness levels and to mix yellow.

The Ref Manual can be found here:
https://d19ulaff0trnck.cloudfront.net/s ... erence.pdf

Allow Flashing Mode:
Code: Select all
MidiSendRAWMsg,11,0,0,40,1


Reset (all off)
Code: Select all
MidiSendRawMsg,11,0,0,0,1


If you create yourself some Variables you can easily control each Button
Code: Select all
Variables
//LED Color and Brightness
VInt,LED_OFF,12
VInt,LED_R_low,13
VInt,LED_R_full,15
VInt,LED_R_flash,11
VInt,LED_A_low,29
VInt,LED_A_full,63
VInt,LED_A_flash,59
VInt,LED_G_low,28
VInt,LED_G_full,60
VInt,LED_G_flash,56
VInt,LED_Y_full,62
VInt,LED_Y_flash,58

//Variablen für Functions
VDelete,LP_xy_pos
VDelete,LP_x_pos
VDelete,LP_y_pos
VInt,LP_xy_pos,0
VInt,LP_x_pos,0
VInt,LP_y_pos,0


In Order to easilly access each Button just write yourself this funktion:
Functionname:LunchPadXYColor{lxpos,lypos,color}
Code: Select all
//Input X: 1-9 (Spalte)
//Input Y: 1-8 (Zeile)
LP_x_pos=lxpos
LP_y_pos=lypos
LP_x_pos-=1
LP_y_pos-=1
//Calc XY Pos für Midi
LP_xy_pos=LP_y_pos
LP_xy_pos*=16
LP_xy_pos+=LP_x_pos
MidiSendRawMsg,9,0,LP_xy_pos,color,1


Now you can use the Script:
LunchPadXYColor{1,2,LED_R_Full}

This will turn on the LED 1 in Row 2 at Full Red
--
Daniel Kaminski
Pandoras Box Expert
User avatar
Daniel Kaminski
 
Posts: 1071
Joined: Tue Jul 22, 2008 10:55 am
Location: Herten, Germany

Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 19 guests