Skip to content

Commit

Permalink
no tuning bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjansson committed Aug 27, 2012
1 parent ee158a4 commit 537b7db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keydetection/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ def get_klangs(mp3 = None, audio = None, time_limit = None, n = 2):
if bins > 1:
logging.debug('Tuning')
tuner = Tuner(bins, global_tuning = True)
ts = tuner.tune(cs)
cs = tuner.tune(cs)

logging.debug('Returning klangs')
klangs = [(i * winlength / float(fs), t.get_nklang(n = n)) for i, t in enumerate(ts)]
klangs = [(i * winlength / float(fs), t.get_nklang(n = n)) for i, t in enumerate(cs)]
return klangs

def generate_spectrogram(audio, window_size):
Expand Down

0 comments on commit 537b7db

Please sign in to comment.