Skip to content

Commit

Permalink
Use range in estimate_tempo
Browse files Browse the repository at this point in the history
  • Loading branch information
craffel committed Apr 18, 2017
1 parent fc28034 commit c8ae1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pretty_midi/pretty_midi.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def estimate_tempi(self):
ioi = ioi[ioi > .05]
ioi = ioi[ioi < 2]
# Normalize all iois into the range 30...300bpm
for n in xrange(ioi.shape[0]):
for n in range(ioi.shape[0]):
while ioi[n] < .2:
ioi[n] *= 2
# Array of inner onset interval cluster means
Expand Down

0 comments on commit c8ae1fa

Please sign in to comment.