     unsigned long startTime = millis();
     int pulse = pitchToPulse(pitch);
     int startstoppulse = max(maxPulse, pulse);
-    digitalWrite(LED_BUILTIN, HIGH);
     digitalWrite(dirPin, dir);
     delayMicroseconds(pulseWidth);
     for (int i=0; i<accelSteps; i++) {

    } else {
        pulse = max(pulse, minPulse);
    }
    digitalWrite(LED_BUILTIN, HIGH);
    digitalWrite(dirPin, dir);
    delayMicroseconds(pulseWidth);
    for (int i=0; i<localAccelSteps; i++) {

        onestep(map(i, 0, accelSteps, pulse, startstoppulse));
    }
    if (recentre) findsensor(startstoppulse);
}

long _durationgliss(int duration, float startpitch, float endpitch, bool dir,
