jdxi_editor.midi.soundfont
Attributes
Functions
|
|
|
|
|
|
|
Convert MIDI ticks to seconds using the same formula as the main player. |
|
Calculate the correct duration accounting for tempo changes. |
|
Play MIDI file with proper tempo change handling using the main player approach |
|
Module Contents
- jdxi_editor.midi.soundfont.ticks_to_seconds(ticks: int, tempo: int, ticks_per_beat: int) float[source]
Convert MIDI ticks to seconds using the same formula as the main player. :param ticks: int :param tempo: int (μs per quarter note) :param ticks_per_beat: int :return: float
- jdxi_editor.midi.soundfont.get_total_duration_in_seconds(midi_file)[source]
Calculate the correct duration accounting for tempo changes. Uses the same approach as the main player.