- //if(c>=16 || c<16+8){
- // LXParameter p = gparams.get(c-16);
- // p.setValue(c/127.0);
- //}
-}
-
-
-void noteOnReceived(Note note) {
- if (debugMode) {
- println("Note On: " + note.toString());
- }
- int pitch = note.getPitch();
- if(pitch>=36 && pitch <36+16){
- noteState[pitch-36]=true;
+ // Left controls
+ uiPatternA = new UIPatternDeck(lx.ui, lx.engine.getDeck(GLucose.LEFT_DECK), "PATTERN A", 4, 4, 140, 324),
+ new UIBlendMode(4, 332, 140, 86),
+ new UIEffects(4, 422, 140, 144),
+ new UITempo(4, 570, 140, 50),
+ uiSpeed = new UISpeed(4, 624, 140, 50),
+
+ // Right controls
+ new UIPatternDeck(lx.ui, lx.engine.getDeck(GLucose.RIGHT_DECK), "PATTERN B", width-144, 4, 140, 324),
+ uiMidi = new UIMidi(midiEngine, width-144, 332, 140, 158),
+ new UIOutput(grizzlies, width-144, 494, 140, 106),
+
+ // Crossfader
+ uiCrossfader = new UICrossfader(width/2-90, height-90, 180, 86),
+
+ // Overlays
+ uiDebugText = new UIDebugText(148, height-138, width-304, 44),
+ uiMapping = new UIMapping(mappingTool, 4, 4, 140, 324)
+ };
+ uiMapping.setVisible(false);
+ for (UILayer layer : layers) {
+ lx.ui.addLayer(layer);