import glucose.*;
import glucose.model.*;
import heronarts.lx.*;
-import heronarts.lx.control.*;
import heronarts.lx.effect.*;
import heronarts.lx.modulator.*;
+import heronarts.lx.parameter.*;
import heronarts.lx.pattern.*;
import heronarts.lx.transform.*;
import heronarts.lx.transition.*;
}
}
-class APC40MidiOutput implements LXParameter.Listener, GridOutput {
+class APC40MidiOutput implements LXParameterListener, GridOutput {
private final MidiEngine midiEngine;
private final MidiOutput output;
public static final String FILENAME = "data/presets.txt";
public static final String DELIMITER = "\t";
- class DeckState implements LXParameter.Listener {
+ class DeckState implements LXParameterListener {
final LXDeck deck;
LXPattern selectedPattern = null;
}
-public abstract class UIParameterControl extends UIObject implements LXParameter.Listener {
+public abstract class UIParameterControl extends UIObject implements LXParameterListener {
protected LXParameter parameter = null;
protected UIParameterControl(float x, float y, float w, float h) {
super("SPEED", x, y, w, h);
speed = new BasicParameter("SPEED", 0.5);
new UIParameterSlider(4, titleHeight, w-10, 20)
- .setParameter(speed.addListener(new LXParameter.Listener() {
+ .setParameter(speed.addListener(new LXParameterListener() {
public void onParameterChanged(LXParameter parameter) {
lx.setSpeed(parameter.getValuef() * 2);
}