- private void mapKeys() {
- int note = 48;
- mapNote('a', 1, note++);
- mapNote('w', 1, note++);
- mapNote('s', 1, note++);
- mapNote('e', 1, note++);
- mapNote('d', 1, note++);
- mapNote('f', 1, note++);
- mapNote('t', 1, note++);
- mapNote('g', 1, note++);
- mapNote('y', 1, note++);
- mapNote('h', 1, note++);
- mapNote('u', 1, note++);
- mapNote('j', 1, note++);
- mapNote('k', 1, note++);
- mapNote('o', 1, note++);
- mapNote('l', 1, note++);
- registerKeyEvent(this);
+ // Draws the simulation and the 2D UI overlay
+ background(40);
+
+ color[] simulationColors;
+ color[] sendColors;
+ simulationColors = sendColors = glucose.getColors();
+ String displayMode = uiCrossfader.getDisplayMode();
+ if (displayMode == "A") {
+ simulationColors = lx.engine.getDeck(GLucose.LEFT_DECK).getColors();
+ } else if (displayMode == "B") {
+ simulationColors = lx.engine.getDeck(GLucose.RIGHT_DECK).getColors();