jdxi_editor.devel.analyze_drum_track
Analyze a MIDI file to identify the drum track.
This script uses multiple heuristics to determine which track is the drum track: 1. MIDI Channel 9 (standard GM drum channel) 2. Track name containing drum-related keywords 3. Note patterns (drum range, note density, polyphony) 4. Lack of pitch bend/control changes
Attributes
Functions
|
Analyze a MIDI track to determine if it's likely a drum track. |
|
Analyze a MIDI file and return the most likely drum track. |
Module Contents
- jdxi_editor.devel.analyze_drum_track.DRUM_KEYWORDS = ['drum', 'percussion', 'perc', 'kit', 'beat', 'rhythm', 'snare', 'kick', 'hihat', 'hi-hat',...[source]
- jdxi_editor.devel.analyze_drum_track.analyze_track_for_drums(track: mido.MidiTrack, track_index: int) dict[source]
Analyze a MIDI track to determine if it’s likely a drum track.
Returns a dictionary with analysis results and a score.