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

    Variable DRUM_NOTESConst

    DRUM_NOTES: Readonly<
        {
            kick: 36;
            snare: 38;
            sideStick: 37;
            handClap: 39;
            closedHiHat: 42;
            pedalHiHat: 44;
            openHiHat: 46;
            crash: 49;
            ride: 51;
            tambourine: 54;
            highTom: 50;
            midTom: 47;
            lowTom: 45;
            shaker: 82;
        },
    > = ...

    The percussion voices the generator emits, as General MIDI note numbers.

    A DrumHit carries only its pitch, so splitting a kit across tracks — kick to one, snare to another — means comparing against these numbers. They are published so that comparison is a named constant covered by semver rather than a hard-coded 36.

    import { DRUM_NOTES, generateDrums } from '@libraz/libcantus';
    const hits = generateDrums({
    bars: 1,
    style: 'standard',
    section: 'verse',
    ctx: { bpm: 120, complexity: { rhythmic: 0.5 } },
    });
    const kick = hits.filter((hit) => hit.pitch === DRUM_NOTES.kick);