4 samplerate = 0 # use original source samplerate
5 hop_size = 256 # number of frames to read in one block
6 s = aubio.source(sys.argv[1], samplerate, hop_size)
9 while True: # reading loop
12 if read < hop_size: break # end of file reached
14 fmt_string = "read {:d} frames at {:d}Hz from {:s}"
15 print (fmt_string.format(total_frames, s.samplerate, sys.argv[1]))