You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thank you for the incredible work on this tool—it has been invaluable during my workflow. However, I’ve encountered a potential issue that I would like to bring to your attention.
Description of the Issue:
The predict_and_save function includes a midi_tempo parameter, but it seems ineffective in controlling the playback speed of the generated MIDI file.
Current Behavior:
Setting the midi_tempo parameter (e.g., to 120 BPM) does not appear to adjust the playback speed as expected.
The generated MIDI file retains the original timing of the audio via time-value compensation.
As a result, the midi_tempo setting does not influence the playback speed.
Concerns:
This behavior might be confusing for users who expect the midi_tempo parameter to directly control playback speed.
The presence of the parameter suggests that it should perform this function, but it currently does not.
Additionally, there does not seem to be any documentation clarifying this limitation.
Code Context
Upon reviewing the relevant section of the code, it seems that the start_time and end_time values are calculated based on the original timing of the input, independent of the midi_tempo setting:
forstart_time, end_time, note_number, amplitude, pitch_bendinnote_events_with_pitch_bends:
instrument=instruments[note_number] ifmultiple_pitch_bendselseinstruments[0]
note=pretty_midi.Note(
velocity=int(np.round(127*amplitude)),
pitch=note_number,
start=start_time, # Original timeend=end_time, # Original time
)
I hope this feedback is helpful and would be happy to provide further details if needed. Thank you again for your excellent work!
Best regards,
Haoyu Wang
The text was updated successfully, but these errors were encountered:
Hello,
First, thank you for the incredible work on this tool—it has been invaluable during my workflow. However, I’ve encountered a potential issue that I would like to bring to your attention.
Description of the Issue:
The
predict_and_save
function includes amidi_tempo
parameter, but it seems ineffective in controlling the playback speed of the generated MIDI file.Current Behavior:
Setting the midi_tempo parameter (e.g., to 120 BPM) does not appear to adjust the playback speed as expected.
The generated MIDI file retains the original timing of the audio via time-value compensation.
As a result, the midi_tempo setting does not influence the playback speed.
Concerns:
This behavior might be confusing for users who expect the midi_tempo parameter to directly control playback speed.
The presence of the parameter suggests that it should perform this function, but it currently does not.
Additionally, there does not seem to be any documentation clarifying this limitation.
Code Context
Upon reviewing the relevant section of the code, it seems that the
start_time
andend_time
values are calculated based on the original timing of the input, independent of themidi_tempo
setting:I hope this feedback is helpful and would be happy to provide further details if needed. Thank you again for your excellent work!
Best regards,
Haoyu Wang
The text was updated successfully, but these errors were encountered: