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

    Function tempoAt

    • The tempo in effect at a beat.

      A beat before the first event reads the opening tempo, which is the tempo a pickup is played at.

      Parameters

      • beat: number

        Position in quarter-note beats.

      • map: TempoMap

        The tempo map.

      Returns number

      Quarter-note beats per minute.

      If the map is malformed.

      import { tempoAt } from '@libraz/libcantus';
      tempoAt(5, [{ startBeat: 0, bpm: 120 }, { startBeat: 4, bpm: 60 }]); // 60