sinesphere working with notes
[SugarCubes.git] / DanUtil.pde
index d340ed1f54dd2cad2c11aa0a12f17bc5980fefb2..c7c8e706d82c49dc1aac97c34d5a6ae0dea245d4 100644 (file)
@@ -155,6 +155,16 @@ public class DPat extends SCPattern
                //println (model.xMax + " " + model.yMax + " " +  model.zMax);
          //for (MidiOutputDevice o: RWMidi.getOutputDevices()) { if (o.toString().contains("APC")) { APCOut = o.createOutput(); break;}}
        }
+
+       float spin() {
+         float raw = val(pSpin);
+         if (raw <= 0.45) {
+           return raw + 0.05;
+         } else if (raw >= 0.55) {
+           return raw - 0.05;
+    }
+    return 0.5;
+       }
        
        void setAPCOutput(MidiOutput output) {
          APCOut = output;