drumscript.drum_classifier.classify

This script determines the classification rules by which the parameters in py are applied to audio_file_path. It fuses high-resolution acoustic DNA extraction with simultaneous HFER/LFER physics rules. Natively detects and filters isolated single-beat cymbals/kicks using Peak Dominance.

Functions

classify_event

Stage 1: Evaluates both skins and Metals simultaneously.

classify_events

Wrapper to route validated onsets through the Physics-First Classification Engine.

classify_idiophone

Stage 2B: Sorts Metals (Hats, Cymbals).

classify_membranophone

Stage 2A: Sorts skins (kick, snare, toms).

classify_rudiment_events

Dedicated classification engine for single beats, paradiddles, and rudiments.

extract_features

Analyses the audio slice and extracts the physical DSP features.

get_audio_slice

Cuts a specific millisecond slice of audio starting exactly at the onset time.