X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=DanHorwitz.pde;h=acf85949d17ba3229bcda89838b7d273c21e0fc6;hb=c539129588fc6cf8edd9ca9da85cd685f0e3b996;hp=76dd0d3d0b399098dbafcb0a99b4bd40844edbf4;hpb=c1d777c91652c808bbf8bb196d85eeb0287b0be7;p=SugarCubes.git diff --git a/DanHorwitz.pde b/DanHorwitz.pde index 76dd0d3..acf8594 100644 --- a/DanHorwitz.pde +++ b/DanHorwitz.pde @@ -67,7 +67,8 @@ public class Noise extends DPat for (int i=0; i<_ND; i++) N[i] = new NDat(); } - void StartPattern() { zTime = random(500); zTheta=0; rtime = 0; ttime = 0; transAdd=0; } + void onActive() { zTime = random(500); zTheta=0; rtime = 0; ttime = 0; transAdd=0; } + void StartRun(double deltaMs) { zTime += deltaMs*(pSpeed.Val()-.5)*.002 ; zTheta += deltaMs*(pSpin .Val()-.5)*.01 ; @@ -209,7 +210,10 @@ public class Play extends DPat } } - void StartPattern() { zTheta=0; } + void onActive() { + zTheta=0; + while (lx.tempo.bpm() > 40) lx.tempo.setBpm(lx.tempo.bpm()/2); + } int KeyPressed = -1; boolean noteOn(Note note) {