repositories
/
SugarCubes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated dpat
[SugarCubes.git]
/
DanHorwitz.pde
diff --git
a/DanHorwitz.pde
b/DanHorwitz.pde
index 76dd0d3d0b399098dbafcb0a99b4bd40844edbf4..acf85949d17ba3229bcda89838b7d273c21e0fc6 100644
(file)
--- 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();
}
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 ;
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) {
int KeyPressed = -1;
boolean noteOn(Note note) {