Changes in python/demos/demo_tempo.py [459e46f:4120fbc]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_tempo.py
r459e46f r4120fbc 5 5 6 6 win_s = 512 # fft size 7 hop_s = win_s / 2# hop size7 hop_s = win_s // 2 # hop size 8 8 9 9 if len(sys.argv) < 2: 10 print "Usage: %s <filename> [samplerate]" % sys.argv[0]10 print("Usage: %s <filename> [samplerate]" % sys.argv[0]) 11 11 sys.exit(1) 12 12 … … 34 34 if is_beat: 35 35 this_beat = int(total_frames - delay + is_beat[0] * hop_s) 36 print "%f" % (this_beat / float(samplerate))36 print("%f" % (this_beat / float(samplerate))) 37 37 beats.append(this_beat) 38 38 total_frames += read
Note: See TracChangeset
for help on using the changeset viewer.