@libraz/libcantus - v1.1.0
    Preparing search index...

    Function sustainsStrokes

    • Whether a player at this ceiling keeps up a stream of strokes on one voice.

      Parameters

      • stepBeats: number

        Gap between consecutive strokes, in quarter-note beats.

      • bpm: number | undefined

        Tempo, or undefined when the caller gave none.

      • difficulty: number | undefined

        The ceiling, or undefined for no ceiling.

      Returns boolean

      True when the stream is inside the ceiling, and whenever either the ceiling or the tempo is unknown — a limit nobody stated constrains nothing.