ref: c05d61ffafcd0312c49d9855f5455afb124a322d
parent: 5fe559194738e2e4c5df4196622211c0653ecf25
author: Paul Brossier <piem@piem.org>
date: Mon Mar 10 12:06:19 EDT 2014
python/demos/demo_source_auto_samplerate.py: remove, demo_source.py is enough
--- a/python/demos/demo_source_auto_samplerate.py
+++ /dev/null
@@ -1,18 +1,0 @@
-#! /usr/bin/env python
-
-import sys
-from aubio import source
-
-if __name__ == '__main__':
- if len(sys.argv) < 2:
- print 'usage: %s <inputfile>' % sys.argv[0]
- sys.exit(1)
- hop_size = 512
- f = source(sys.argv[1], 0, hop_size)
- samplerate = f.samplerate
- total_frames, read = 0, hop_size
- while read:
- vec, read = f()
- total_frames += read
- print f.uri, "is",
- print "%.2f seconds long at %.1fkHz" % (total_frames / float(samplerate), samplerate / 1000. )