From: Mark Slee Date: Tue, 20 Aug 2013 11:03:31 +0000 (-0700) Subject: Unbreaking master X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b12bca62f036895bcd6e4474f69ee84809d4c1ff;p=SugarCubes.git Unbreaking master --- diff --git a/MarkSlee.pde b/MarkSlee.pde index 0adbe55..4361a54 100644 --- a/MarkSlee.pde +++ b/MarkSlee.pde @@ -368,6 +368,10 @@ class CrossSections extends SCPattern { addModulator(x).trigger(); addModulator(y).trigger(); addModulator(z).trigger(); + addParams(); + } + + protected void addParams() { addParameter(xr); addParameter(yr); addParameter(zr); @@ -388,11 +392,16 @@ class CrossSections extends SCPattern { z.setDuration(10000 - 9000*p.getValuef()); } } + + float xv, yv, zv; + + protected void updateXYZVals() { + xv = x.getValuef(); + yv = y.getValuef(); + zv = z.getValuef(); + } public void run(int deltaMs) { - float xv = x.getValuef(); - float yv = y.getValuef(); - float zv = z.getValuef(); float xlv = 100*xl.getValuef(); float ylv = 100*yl.getValuef(); float zlv = 100*zl.getValuef();