 void loop() {
     receivedata();
     if (newData) processdata();
-}
+    /* DEBUG gliss code
+    durationgliss(500, 60, 70, true, false, 50);
+    delay(5000);
+    doublegliss(500, 500, 60, 72, 61, true, false, 50);
+    delay(5000);
+    */
+}

    halfTurns = 1;
    duration = 500;
    midDuration = 500;
    sustainDuration = 180;
    startPitch = 72;
    midPitch = 48;
    endPitch = 60;

        Serial.print("direction ");
        Serial.print(dir, BIN);
        Serial.print(", recentre ");
        Serial.print(recentre, BIN);
        Serial.print(", sustain ");
        Serial.println(sustainDuration, BIN);
    } else {
        // show test styles
        Serial.println("203: 0xcb: turn");
