             Serial.print(dur, DEC);
             Serial.print(" time ");
             unsigned long starttime = millis();
-            durationturn(dur, i, i % 2, false);
+            durationTurn(dur, i, i % 2, false);
             Serial.println(millis() - starttime);
             delay(500);
         }
     } else if (style == 7) {
         // arpeggio
-        durationturn(4000, 48, true, false);
+        durationTurn(4000, 48, true, false);
         delay(1500);
-        durationturn(1800, 52, true, false);
+        durationTurn(1800, 52, true, false);
         delay(1500);
-        durationturn(1800, 55, true, false);
+        durationTurn(1800, 55, true, false);
         delay(1500);
-        durationturn(4000, 60, true, false);
+        durationTurn(4000, 60, true, false);
         delay(1500);
-        durationturn(1800, 64, true, false);
+        durationTurn(1800, 64, true, false);
         delay(1500);
-        durationturn(1800, 67, true, false);
+        durationTurn(1800, 67, true, false);
         delay(1500);
-        durationturn(4000, 70, true, false);
+        durationTurn(4000, 70, true, false);
         delay(1500);
-        durationturn(4000, 72, true, false);
+        durationTurn(4000, 72, true, false);
     } else if (style == 8) {
         // show settings
         Serial.print("halfturns ");

float startPitch;
float midPitch;
float endPitch;
boolean dir;
boolean recentre;
boolean newData = false;
volatile boolean alarmState = false;


            findSensor(maxPulse);
            sendReady();
        } else if (data == rTurn) {
            turn(halfTurns, startPitch, Dir);
        } else if (data == rGliss) {
            gliss(halfTurns, startPitch, endPitch, Dir);
        } else if (data == rTimedTurn) {
            timedTurn(halfTurns, Duration, Dir);
        } else if (data == rDurationTurn) {
            durationTurn(Duration, startPitch, Dir, reCentre);
        } else if (data == rDurationGliss) {
            durationGliss(Duration, startPitch, endPitch,
                    Dir, reCentre, sustainDuration);
        } else if (data == rForwards) {
            Dir = true;
        } else if (data == rBackwards) {
            Dir = false;
        } else if (data == rRecentre) {
            reCentre = true;
        } else if (data == rNoRecentre) {
            reCentre = false;
        } else if (data == rSetDuration) {
            for (byte d=0; d<rDurlength; d++) {
                newDuration[d] = serialIncoming[++i];
