MAIDR Documentation - v4.4.0
    Preparing search index...

    Function echoTailMs

    • Wall-clock length in milliseconds of the echo tail a point produces: the onset of its final echo, plus that echo's own tone and its reverb decay. Mirrors the scheduling in scheduleEchoes and playOscillator.

      Exported so the arithmetic autoplay paces itself by can be tested without standing up an AudioContext.

      Parameters

      • numEchoes: number

        Echoes actually scheduled for the point

      • maxEchoCount: number

        Configured maximum, which sets the reverb ramp

      • echoDurationSeconds: number

        Delay between consecutive echoes

      Returns number

      Tail length in milliseconds; 0 when no echoes are scheduled