jdxi_editor.midi.track.analyzer =============================== .. py:module:: jdxi_editor.midi.track.analyzer Classes ------- .. autoapisummary:: jdxi_editor.midi.track.analyzer.TrackAnalyzer Module Contents --------------- .. py:class:: TrackAnalyzer(track: mido.MidiTrack, index: int) Track analyser to add tracks .. py:attribute:: track .. py:attribute:: stats .. py:attribute:: time :value: 0 .. py:attribute:: active_notes :type: dict[int, int] .. py:attribute:: note_start :type: dict[int, int] .. py:attribute:: durations :type: list[int] :value: [] .. py:method:: run() -> jdxi_editor.midi.track.stats.TrackStats run the analysis and send to dispatcher .. py:method:: _dispatch(msg) dispatch to handler .. py:method:: _on_note_on(msg) on note on .. py:method:: _on_note_off(msg) check for legato .. py:method:: _on_pitchwheel(msg) check for bent notes .. py:method:: _on_control_change(msg) add cc .. py:method:: _on_program_change(msg) add pc .. py:method:: _finalize() finalize analysis .. py:method:: _read_track_name() Extract track name from meta messages