From: Mark Slee Date: Fri, 18 Oct 2013 22:17:56 +0000 (-0700) Subject: Add hue cycle and rotation buttons X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=45acdbc0a9eeae34ce1d8beeb10d4f12448f9aed;p=SugarCubes.git Add hue cycle and rotation buttons --- diff --git a/_MIDI.pde b/_MIDI.pde index 40f1c15..06c3244 100644 --- a/_MIDI.pde +++ b/_MIDI.pde @@ -332,7 +332,7 @@ public class APC40MidiInput extends GenericDeviceMidiInput { private LXEffect releaseEffect = null; APC40MidiInput(MidiEngine midiEngine, MidiInputDevice d) { - super(midiEngine, d); + super(midiEngine, d); } private class GridPosition { @@ -381,7 +381,7 @@ public class APC40MidiInput extends GenericDeviceMidiInput { EFF_colorFucker.sharp.setValue(value); break; case 1: - EFF_colorFucker.soft.setValue(value); + EFF_colorFucker.hueShift.setValue(value); break; case 5: EFF_blur.amount.setValue(value); @@ -444,6 +444,9 @@ public class APC40MidiInput extends GenericDeviceMidiInput { case 5: EFF_colorFucker.invert.setValue(1); break; + case 6: + lx.cycleBaseHue(60000); + break; } break; @@ -526,6 +529,9 @@ public class APC40MidiInput extends GenericDeviceMidiInput { case 5: EFF_colorFucker.invert.setValue(0); break; + case 6: + lx.setBaseHue(lx.getBaseHue()); + break; } break; @@ -626,6 +632,9 @@ class APC40MidiOutput implements LXParameter.Listener, GridOutput { } resetParameters(); midiEngine.grid.addOutput(this); + + lx.cycleBaseHue(60000); + output.sendNoteOn(6, 49, 127); } private void resetParameters() {