     digitalWrite(dirPin, dir);
     delayMicroseconds(pulseWidth);
     for (int i=0; i<accelSteps; i++) {
-        onestep(map(i, 0, accelSteps, startstoppulse, pulse));
+        oneStep(map(i, 0, accelSteps, startstoppulse, pulse));
         if (alarmState) return;
     }
     for (int i=0; i<fullspeedsteps; i++) {
-        onestep(pulse);
+        oneStep(pulse);
         if (alarmState) return;
     }
     for (int i=0; i<accelSteps; i++) {
-        onestep(map(i, 0, accelSteps, pulse, startstoppulse));
+        oneStep(map(i, 0, accelSteps, pulse, startstoppulse));
         if (i>(accelSteps - decelLook) && digitalRead(sensorPin)) break;
         if (alarmState) return;
     }

    delayMicroseconds(pulseWidth);
    // accelerando
    for (int i=0; i<accelsteps; i++) {
        onestep(map(i, 0, accelsteps, max(maxPulse, startsustainpulse), startsustainpulse));
        if (alarmState) return 0;
    }
    // sustain start
    for (int i=0; i<sustainstartsteps; i++) {
        onestep(startsustainpulse);
        if (alarmState) return 0;
    }
    // glissando one
    for (int i=0; i<glissonesteps; i++) {
        onestep(map(i, 0, glissonesteps, startpulse, midpulse));
        if (alarmState) return 0;
    }
    // sustain mid
    for (int i=0; i<sustainmidsteps; i++) {
        onestep(midsustainpulse);
        if (alarmState) return 0;
    }
    // glissando two
    for (int i=0; i<glisstwosteps; i++) {
        onestep(map(i, 0, glisstwosteps, midpulse, endpulse));
        if (alarmState) return 0;
    }
    // sustain end
    for (int i=0; i<sustainendsteps; i++) {
        onestep(endsustainpulse);
        if (alarmState) return 0;
    }
    // decelerando
    for (int i=0; i<decelsteps; i++) {
        onestep(map(i, 0, decelsteps, endsustainpulse, max(maxPulse, endsustainpulse)));
        if (alarmState) return 0;
    }
    if (recentre) findSensor(max(maxPulse, endsustainpulse));

    startPitch = 72;
    midPitch = 48;
    endPitch = 60;
    Dir = true;
    reCentre = true;
}

void sendReady() {
