Skip to content

A lightweight yet powerful audio-to-MIDI converter with pitch bend detection

remove lingering print statements

Doherty Guirand7ca41abc1a11
diff --git a/basic_pitch/inference.py b/basic_pitch/inference.py
index 2ec4d11..be521a1 100644
--- a/basic_pitch/inference.py
+++ b/basic_pitch/inference.py
@@ -117,7 +117,6 @@ def unwrap_output(output: Tensor, audio_original_length: int, n_overlapping_fram
output_shape = raw_output.shape
n_output_frames_original = int(np.floor(audio_original_length * (ANNOTATIONS_FPS / AUDIO_SAMPLE_RATE)))
unwrapped_output = raw_output.reshape(output_shape[0] * output_shape[1], output_shape[2])
- print("unwrapped_output:\n",unwrapped_output[:n_output_frames_original, :])
return unwrapped_output[:n_output_frames_original, :] # trim to original audio length
diff --git a/basic_pitch/note_creation.py b/basic_pitch/note_creation.py
index 72a019b..f653700 100644
--- a/basic_pitch/note_creation.py
+++ b/basic_pitch/note_creation.py
@@ -396,7 +396,6 @@ def output_to_notes_polyphonic(
# loop over onsets
note_events = []
for note_start_idx, freq_idx in zip(onset_time_idx, onset_freq_idx):
- print("freq_idx: ", freq_idx)
# if we're too close to the end of the audio, continue
if note_start_idx >= n_frames - 1:
continue
@@ -495,6 +494,5 @@ def output_to_notes_polyphonic(
amplitude,
)
)
- print(note_events)
return note_events