UIMidi uiMidi;
UIMapping uiMapping;
UIDebugText uiDebugText;
+UISpeed uiSpeed;
// Camera variables
float eyeR, eyeA, eyeX, eyeY, eyeZ, midX, midY, midZ;
new UIBlendMode(4, 332, 140, 86),
new UIEffects(4, 422, 140, 144),
new UITempo(4, 570, 140, 50),
- new UISpeed(4, 624, 140, 50),
+ uiSpeed = new UISpeed(4, 624, 140, 50),
new UIPatternDeck(lx.engine.getDeck(GLucose.RIGHT_DECK), "PATTERN B", width-144, 4, 140, 324),
uiMidi = new UIMidi(midiEngine, width-144, 332, 140, 158),
}
class UISpeed extends UIWindow {
+
+ final BasicParameter speed;
+
UISpeed(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(new BasicParameter("SPEED", 0.5).addListener(new LXParameter.Listener() {
+ .setParameter(speed.addListener(new LXParameter.Listener() {
public void onParameterChanged(LXParameter parameter) {
lx.setSpeed(parameter.getValuef() * 2);
}