python/demos/demo_wav2midi.py: remove unused variables
authorPaul Brossier <piem@piem.org>
Mon, 4 Sep 2017 13:52:14 +0000 (15:52 +0200)
committerPaul Brossier <piem@piem.org>
Mon, 4 Sep 2017 13:52:14 +0000 (15:52 +0200)
python/demos/demo_wav2midi.py

index f503dc0..48c2d0a 100755 (executable)
@@ -48,11 +48,7 @@ track.append(MetaMessage('time_signature', numerator=4, denominator=4))
 
 def frames2tick(frames, samplerate=samplerate):
     sec = frames / float(samplerate)
-    tick = int(second2tick(sec, ticks_per_beat, tempo))
-    return tick
-
-sec = 7
-previous_note = None
+    return int(second2tick(sec, ticks_per_beat, tempo))
 
 last_time = 0