Skip to content

Commit c29b01b

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/main'
2 parents ddc21c0 + 9d7e370 commit c29b01b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

basic_pitch/note_creation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def model_frames_to_time(n_frames: int) -> np.ndarray:
350350
window_numbers = np.floor(np.arange(n_frames) / ANNOT_N_FRAMES)
351351
window_offset = (FFT_HOP / AUDIO_SAMPLE_RATE) * (
352352
ANNOT_N_FRAMES - (AUDIO_N_SAMPLES / FFT_HOP)
353-
) + MAGIC_ALIGNMENT_OFFSET # no more magic number :D
353+
) + MAGIC_ALIGNMENT_OFFSET
354354
times = original_times - (window_offset * window_numbers)
355355
return times
356356

0 commit comments

Comments
 (0)