         Serial.print("midduration ");
         Serial.print(midDuration, DEC);
         Serial.print(", duration ");
-        Serial.println(duration, DEC);
+        Serial.println(Duration, DEC);
         Serial.print("startpitch ");
         Serial.print(startPitch, DEC);
         Serial.print(" midpitch ");

        Serial.print("halfturns ");
        Serial.print(halfTurns, DEC);
        Serial.print(" duration ");
        Serial.print(duration, DEC);
        Serial.print(" direction ");
        Serial.print(dir, DEC);
        Serial.print(" time ");
        unsigned long starttime = millis();
        int pulse = timedturn(halfTurns, duration, dir);
        Serial.print(millis() - starttime);
        Serial.print(" pulse ");
        Serial.println(pulse, DEC);
    } else if (style == 3) {
        // duration turn
        Serial.print("duration ");
        Serial.print(duration, DEC);
        Serial.print(" pitch ");
        Serial.print(startPitch, DEC);
        Serial.print(" direction ");


void defaults() {
    halfTurns = 1;
    Duration = 500;
    midDuration = 500;
    sustainDuration = 50;
    startPitch = 72;
