@@ -351,7 +351,7 @@ def predict_and_save(
351351 model_path : Union [pathlib .Path , str ] = ICASSP_2022_MODEL_PATH ,
352352 onset_threshold : float = 0.5 ,
353353 frame_threshold : float = 0.3 ,
354- minimum_note_length : float = 58 ,
354+ minimum_note_length : float = 127.70 ,
355355 minimum_frequency : Optional [float ] = None ,
356356 maximum_frequency : Optional [float ] = None ,
357357 multiple_pitch_bends : bool = False ,
@@ -372,7 +372,7 @@ def predict_and_save(
372372 model_path: Path to load the Keras saved model from. Can be local or on GCS.
373373 onset_threshold: Minimum energy required for an onset to be considered present.
374374 frame_threshold: Minimum energy requirement for a frame to be considered present.
375- minimum_note_length: The minimum allowed note length in frames .
375+ minimum_note_length: The minimum allowed note length in milliseconds .
376376 minimum_freq: Minimum allowed output frequency, in Hz. If None, all frequencies are used.
377377 maximum_freq: Maximum allowed output frequency, in Hz. If None, all frequencies are used.
378378 multiple_pitch_bends: If True, allow overlapping notes in midi file to have pitch bends.
0 commit comments