From: Mark Slee Date: Thu, 24 Oct 2013 16:51:16 +0000 (-0700) Subject: Make DanUtil have a spin() function so close-to-center knob doesn't spin X-Git-Url: https://git.piment-noir.org/?p=SugarCubes.git;a=commitdiff_plain;h=794995923b50129fee95afffd449e1bd09537fc2 Make DanUtil have a spin() function so close-to-center knob doesn't spin --- diff --git a/DanHorwitz.pde b/DanHorwitz.pde index 841a2ff..6c958e1 100644 --- a/DanHorwitz.pde +++ b/DanHorwitz.pde @@ -71,7 +71,7 @@ public class Noise extends DPat void StartRun(double deltaMs) { zTime += deltaMs*(val(pSpeed)-.5)*.002 ; - zTheta += deltaMs*(val(pSpin )-.5)*.01 ; + zTheta += deltaMs*(spin()-.5)*.01 ; rtime += deltaMs; iSymm = pSymm.Cur(); zSin = sin(zTheta); @@ -467,6 +467,7 @@ class Worms extends SCPattern { } void onParameterChanged(LXParameter parameter) { + super.onParameterChanged(parameter); nConfusion = 1-pConfusion.getValuef(); for (int i=0; i= 0.55) { + return raw - 0.05; + } + return 0.5; + } void setAPCOutput(MidiOutput output) { APCOut = output;