We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ddc21c0 + 9d7e370 commit c29b01bCopy full SHA for c29b01b
basic_pitch/note_creation.py
@@ -350,7 +350,7 @@ def model_frames_to_time(n_frames: int) -> np.ndarray:
350
window_numbers = np.floor(np.arange(n_frames) / ANNOT_N_FRAMES)
351
window_offset = (FFT_HOP / AUDIO_SAMPLE_RATE) * (
352
ANNOT_N_FRAMES - (AUDIO_N_SAMPLES / FFT_HOP)
353
- ) + MAGIC_ALIGNMENT_OFFSET # no more magic number :D
+ ) + MAGIC_ALIGNMENT_OFFSET
354
times = original_times - (window_offset * window_numbers)
355
return times
356
0 commit comments