From: Toby Segaran Date: Thu, 15 Aug 2013 18:05:50 +0000 (-0700) Subject: vertical strips for SoundRain, colors for FaceSync X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=dbf92ceedc8acfc45d21811c40b8c4c9df1970c3;p=SugarCubes.git vertical strips for SoundRain, colors for FaceSync --- 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