Skip to content

Commit

Permalink
Fix indexing error in estimate_tempo() (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaseck authored and craffel committed Sep 7, 2016
1 parent 574532d commit cd0c27b
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 @@ -459,7 +459,7 @@ def estimate_tempo(self):
if tempi.size == 0:
raise ValueError("Can't provide a global tempo estimate when there"
" are fewer than two notes.")
return tempi[0][0]
return tempi[0]

def get_beats(self, start_time=0.):
"""Return a list of beat locations, according to MIDI tempo changes.
Expand Down

0 comments on commit cd0c27b

Please sign in to comment.