Skip to content

Commit f746807

Browse files
committed
Little comment update.
1 parent 748c672 commit f746807

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

repet.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
http://zafarrafii.com
3131
https://github.com/zafarrafii
3232
https://www.linkedin.com/in/zafarrafii/
33-
01/21/21
33+
01/22/21
3434
"""
3535

3636
import numpy as np
@@ -154,11 +154,12 @@ def original(audio_signal, sampling_frequency):
154154
# Compute the STFT of the current channel
155155
audio_stft[:, :, i] = _stft(audio_signal[:, i], window_function, step_length)
156156

157-
# Derive the magnitude spectrogram (with the DC component and without the mirrored frequencies)
157+
# Derive the magnitude spectrogram
158+
# (with the DC component and without the mirrored frequencies)
158159
audio_spectrogram = abs(audio_stft[0 : int(window_length / 2) + 1, :, :])
159160

160161
# Compute the beat spectrum of the spectrograms averaged over the channels
161-
# (take the square to emphasize peaks of periodicitiy)
162+
# (take the square to emphasize periodicitiy peaks)
162163
beat_spectrum = _beatspectrum(np.power(np.mean(audio_spectrogram, axis=2), 2))
163164

164165
# Get the period range in time frames for the beat spectrum

0 commit comments

Comments
 (0)