         Serial.print(duration, DEC);
         Serial.print(" time ");
         unsigned long starttime = millis();
-        durationgliss(duration, startpitch, endpitch, duration % 2, false);
-        Serial.println(millis() - starttime);
+        long calcdur = durationgliss(duration, startpitch, endpitch, duration % 2, false);
+        Serial.print(millis() - starttime);
+        Serial.print(" calctime ");
+        Serial.println(calcdur, DEC);
     } else if (style == 5) {
         // scale
         for (int i=36; i<73; i++) {

    }
    if (recentre) findsensor(max(maxPulse, endpulse));
    digitalWrite(LED_BUILTIN, LOW);
}

void test(int style) {

#define minPulse       500
#define maxPulse      2500

#define durationGlissCompensation 480

/*************************
 * communication commands
