User Tools

Site Tools


midi_scripting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
midi_scripting [2020/03/25 15:47]
be.ing [Color API]
midi_scripting [2020/05/04 11:22] (current)
be.ing [Color API] update ColorMapper documentation to use JS numbers as indexes
Line 468: Line 468:
 <​code=javascript>​ <​code=javascript>​
 var myControllerColorMapper = new ColorMapper({ var myControllerColorMapper = new ColorMapper({
-    ​"#​FF0000"​: 1, // red +    ​0xFF0000: 1, // red 
-    ​"#​00FF00"​: 2, // green +    ​0x00FF00: 2, // green 
-    ​"#​0000FF"​: 3, // blue+    ​0x0000FF: 3, // blue
 }); });
 </​code>​ </​code>​
midi_scripting.txt · Last modified: 2020/05/04 11:22 by be.ing