From 794995923b50129fee95afffd449e1bd09537fc2 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Thu, 24 Oct 2013 09:51:16 -0700 Subject: [PATCH] Make DanUtil have a spin() function so close-to-center knob doesn't spin --- DanHorwitz.pde | 3 ++- DanUtil.pde | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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; -- 2.34.1