Changes in python/demos/demo_onset.py [8b884ef:4120fbc]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_onset.py
r8b884ef 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 … … 29 29 samples, read = s() 30 30 if o(samples): 31 print "%f" % o.get_last_s()31 print("%f" % o.get_last_s()) 32 32 onsets.append(o.get_last()) 33 33 total_frames += read
Note: See TracChangeset
for help on using the changeset viewer.