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.
Position in quarter-note beats.
The tempo map.
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 Copy
import { tempoAt } from '@libraz/libcantus';tempoAt(5, [{ startBeat: 0, bpm: 120 }, { startBeat: 4, bpm: 60 }]); // 60
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.