 #define minPulse       500
 #define maxPulse      2500
 
-// compensation factor
-#define durationGlissFactor 0.87
+#define durationGlissCompensation 480
 
 /*************************
  * communication commands

            unsigned long starttime = millis();
            durationturn(dur, i, i % 2, false);
            Serial.println(millis() - starttime);
            delay(333);
        }
    }
}

void loop() {
    test(5);
    /*
    if (Serial.available()) {
        serialIncoming = Serial.read();

    float i = ((71 - constrain(pitch, 36, 72)) * 71) / 33;
    float p = 1 - log10(((72 - i) * 0.125) + 1);
    return 500 + (3500 * p);
}

float pitchbyteToMidi(byte pitch) {
    return (pitch / 2) + 36;
}

void flashled() {
