Engine.getKeyColour()
-
I have a custom colour scheme for my keyboard that changes depending on the expansion, and I need to change the colour of 1 key when pressed, then change it back on noteOff, so would be great if I could store the colour as a local var, then just restore it afterwards.
-
@iamlamprey Can't you store the key colours when you set them?
-
@d-healey So push them into an array or something? I'd still have to use a case statement for each expansion
-
Yeah just put the colour of each key in an array at the time you set the key colour.
-
All good just have to rework some bits of code then :) cheers
-
@iamlamprey You can also add a .JSON file containing some specific data in the AdditionalSourceCode of your expansion.
var e = expHandler.getCurrentExpansion();
var data = e.loadDataFile("data.json");and accessing data like this:
data.colourthe JSON file should look like this
{
"colour": "red",
}Cheers!
-
@marcLab i forgot all about the source code folders :confounded_face: