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

    Type Alias DrumHit

    A single percussion onset.

    type DrumHit = {
        pitch: number;
        startBeat: number;
        durationBeat: number;
        velocity: number;
        articulation?: Articulation;
    }
    Index
    pitch: number

    General MIDI note number; drumVoiceOf names it.

    startBeat: number
    durationBeat: number
    velocity: number
    articulation?: Articulation

    How the stroke is played, when it is more than a plain hit. A flam is one onset carrying 'flam', not a pair of notes a fraction of a beat apart, so the grace stroke is the reader's to place — as a second note, a key switch, or a sample layer — and any pattern can carry one.