jdxi_editor.midi.track.analyzer

Classes

TrackAnalyzer

Track analyser to add tracks

Module Contents

class jdxi_editor.midi.track.analyzer.TrackAnalyzer(track: mido.MidiTrack, index: int)[source]

Track analyser to add tracks

track[source]
stats[source]
time = 0[source]
active_notes: dict[int, int][source]
note_start: dict[int, int][source]
durations: list[int] = [][source]
run() jdxi_editor.midi.track.stats.TrackStats[source]

run the analysis and send to dispatcher

_dispatch(msg)[source]

dispatch to handler

_on_note_on(msg)[source]

on note on

_on_note_off(msg)[source]

check for legato

_on_pitchwheel(msg)[source]

check for bent notes

_on_control_change(msg)[source]

add cc

_on_program_change(msg)[source]

add pc

_finalize()[source]

finalize analysis

_read_track_name()[source]

Extract track name from meta messages