X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=DanKaminsky.pde;h=8e236a2a611d6b43aa9cc5902a65d4c8c587c2a9;hb=344908672b7cfe1efba03f739ef945601dae1b8e;hp=3dd9d1407e68f419003846f5b91bdb0978971755;hpb=34327c962351112e07c3d93f56ffc543fac45b58;p=SugarCubes.git diff --git a/DanKaminsky.pde b/DanKaminsky.pde index 3dd9d14..8e236a2 100644 --- a/DanKaminsky.pde +++ b/DanKaminsky.pde @@ -3,15 +3,15 @@ class GenericController { public void RotateKnob(int type, int num, float val){ LXParameter p = null; if(type==0) { - p = glucose.patternKnobs.get(num); + p = glucose.getPattern().getParameters().get(num); if(p!=null) { p.setValue(val); } } if(type==1) { - p = glucose.transitionKnobs.get(num); + p = glucose.getSelectedTransition().getParameters().get(num); if(p!=null) { p.setValue(val); } } if(type==2) { - p = glucose.effectKnobs.get(num); + p = glucose.getSelectedEffect().getParameters().get(num); if(p!=null) { p.setValue(val); } } } @@ -38,9 +38,9 @@ OscP5 listener; // } // if(cc.getCC()==1){ // for(int i=0; i<16; i++){ -// if(noteState[i] && i<8) { LXParameter p = glucose.patternKnobs.get(i); p.setValue(cc.getValue()/127.0); } -// else if(noteState[i] && i<12) { LXParameter p = glucose.transitionKnobs.get(i-8); p.setValue(cc.getValue()/127.0); } -// else if(noteState[i] && i<16) { LXParameter p = glucose.effectKnobs.get(i-12); p.setValue(cc.getValue()/127.0); } +// if(noteState[i] && i<8) { LXParameter p = glucose.getPattern().getParameters().get(i); p.setValue(cc.getValue()/127.0); } +// else if(noteState[i] && i<12) { LXParameter p = glucose.getSelectedTransition().getParameters().get(i-8); p.setValue(cc.getValue()/127.0); } +// else if(noteState[i] && i<16) { LXParameter p = glucose.getSelectedEffect().getParameters().get(i-12); p.setValue(cc.getValue()/127.0); } // } // } //} @@ -79,12 +79,12 @@ class ObjectMuckerEffect extends SCEffect { ObjectMuckerEffect(GLucose glucose) { super(glucose); } - public void doApply(int[] colors){ + public void apply(int[] colors){ /*for(Strip s: model.strips){ for(int i=0; i x-4 && p.y < y+4 && p.y > y-4) { colors[p.index] = #FF0000; } @@ -207,7 +207,7 @@ import processing.serial.*; pret.pixels = ss.getScreenShotJNI2(x, y, w, h); //for(int i=0; i