X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TobySegaran.pde;h=4334ff81219e0d8bb835b851a884c97abce5b27c;hb=dbf92ceedc8acfc45d21811c40b8c4c9df1970c3;hp=fd4a44217fb2b4329007da40a9420492b85325c5;hpb=821ceae95aca73def4a6d5abc36e0065895cfa37;p=SugarCubes.git diff --git a/TobySegaran.pde b/TobySegaran.pde index fd4a442..4334ff8 100644 --- a/TobySegaran.pde +++ b/TobySegaran.pde @@ -138,10 +138,13 @@ class SoundRain extends SCPattern { private float[] lightVals = null; private int avgSize; SawLFO pos = new SawLFO(0, 9, 8000); + SinLFO col1 = new SinLFO(0, model.xMax, 5000); + public SoundRain(GLucose glucose) { super(glucose); addModulator(pos).trigger(); + addModulator(col1).trigger(); } protected void onActive() { @@ -170,16 +173,16 @@ class SoundRain extends SCPattern { lightVals[i]=max(lv,lightVals[i]-5,0); } } - for (int i=0; i