Changeset 4120fbc for python/demos/demo_pysoundcard_record.py
- Timestamp:
- May 16, 2016, 3:16:00 AM (8 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:
- dc654f8
- Parents:
- 416ddd1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_pysoundcard_record.py
r416ddd1 r4120fbc 11 11 s = Stream(blocksize = hop_size, channels = 1) 12 12 g = sink(sink_path, samplerate = int(s.samplerate)) 13 print s.channels14 13 15 14 s.start() … … 23 22 total_frames += hop_size 24 23 except KeyboardInterrupt: 25 print "stopped after", "%.2f seconds" % (total_frames / s.samplerate) 24 duration = total_frames / float(s.samplerate) 25 print("stopped after %.2f seconds" % duration) 26 26 s.stop() 27 27
Note: See TracChangeset
for help on using the changeset viewer.