SOURCE-CODE CHECK
Pitch is required
The current script checks frame level, searches for a repeating waveform pattern within the selected frequency range, and returns one pitch or no pitch. It never labels an event kick, snare, or hi-hat. Lowering Silence threshold may admit a quiet frame, but it cannot make a random transient into a reliable pitched note.