Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion Launchpad-Mini-mk3.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,22 @@ function setColorByNote(note, color, pulsing)
script.log("Set Button with Note "+note+" to color "); //TODO
}


function setPadColor(id, color, pulsing)
{
var note = buttonNotes[id[0]][id[1]];
setColorByNote(note, color, pulsing);
}


function setColorByIndex(x, y, color, pulsing)
{
var note = buttonNotes[y][x];
setColorByNote(note, color, pulsing);
}



// ---- Module Common Functions ----

function init()
Expand Down Expand Up @@ -329,4 +345,4 @@ function ccEvent(channel, note, value)
function sysExEvent(data)
{
script.log("Sysex Message received, "+data.length+" bytes :");
}
}