- Timestamp:
- Feb 22, 2014, 9:03:46 PM (11 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- d7ac23f
- Parents:
- 9aa0af3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_source_auto_samplerate.py
r9aa0af3 r1cc78e7 8 8 print 'usage: %s <inputfile>' % sys.argv[0] 9 9 sys.exit(1) 10 f = source(sys.argv[1], 0, 256) 11 samplerate = f.get_samplerate() 12 total_frames, read = 0, 256 10 hop_size = 512 11 f = source(sys.argv[1], 0, hop_size) 12 samplerate = f.samplerate 13 total_frames, read = 0, hop_size 13 14 while read: 14 15 vec, read = f()
Note: See TracChangeset
for help on using the changeset viewer.