X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=AlexGreen.pde;fp=AlexGreen.pde;h=91677db78efd90e70327392cd6bafc857a3f4c45;hb=f82959711a831753a6c42137de4e71fc5d4af5fb;hp=23c42631d82b901e7008b65027bb39374857693f;hpb=9bdc3e7323c2d8d106a60a8d53c966f7d2d75063;p=SugarCubes.git diff --git a/AlexGreen.pde b/AlexGreen.pde index 23c4263..91677db 100644 --- a/AlexGreen.pde +++ b/AlexGreen.pde @@ -3,6 +3,7 @@ class SineSphere extends SCPattern { public final Projection sinespin; float modelrad = sqrt((model.xMax)*(model.xMax) + (model.yMax)*(model.yMax) + (model.zMax)*(model.zMax)); Pick Sshape; + public final PVector P = new PVector(); class Sphery { float f1xcenter, f1ycenter, f1zcenter, f2xcenter , f2ycenter, f2zcenter; //second three are for an ellipse with two foci @@ -17,8 +18,6 @@ class SineSphere extends SCPattern { public BasicParameter huespread; public BasicParameter bouncerate; public BasicParameter bounceamp; - - public Sphery(float f1xcenter, float f1ycenter, float f1zcenter, float vibration_min, float vibration_max, float vperiod) { @@ -39,7 +38,7 @@ class SineSphere extends SCPattern { //addModulator(bounceamp); //ybounce.setMagnitude(bouncerate); addModulator( vibration = new SinLFO(vibration_min , vibration_max, 240000./lx.tempo.bpm())).trigger(); //vibration.modulateDurationBy(vx); - + } public Sphery(float f1xcenter, float f1ycenter, float f1zcenter, float f2xcenter, float f2ycenter, float f2zcenter, float vibration_min, float vibration_max, float vperiod)