ref: 34dca8705301e51963816e5cb1a5d225b8507c93
parent: 3c6a3c4642bca33cdd5b8951092f037dbc5bcae7
author: Paul Brossier <piem@piem.org>
date: Mon Sep 4 11:52:14 EDT 2017
python/demos/demo_wav2midi.py: remove unused variables
--- a/python/demos/demo_wav2midi.py
+++ b/python/demos/demo_wav2midi.py
@@ -48,11 +48,7 @@
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