Hiyve Components - v1.0.0
    Preparing search index...

    Options for useMetronome.

    interface UseMetronomeOptions {
        accentFirstBeat?: boolean;
        beatsPerBar?: number;
        bpm: number;
        countInBars?: number;
        onError?: (error: Error) => void;
        volume?: number;
    }
    Index

    Properties

    accentFirstBeat?: boolean

    Accent the first beat of each bar (default: true)

    beatsPerBar?: number

    Beats in a bar; the first is accented (default: 4)

    bpm: number

    Quarter notes per minute

    countInBars?: number

    Bars of clicks before the first beat of the piece (default: 1)

    onError?: (error: Error) => void

    Called when audio cannot be started

    volume?: number

    Click level, 0–1 (default: 0.5)