Changeset 155cc10 for python/demos/demo_pysoundcard_record.py
- Timestamp:
- Mar 10, 2017, 2:26:32 PM (7 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, sampler
- Children:
- ee8a57c
- Parents:
- 00d0275 (diff), 67b6618 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_pysoundcard_record.py
r00d0275 r155cc10 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() … … 22 21 g(mono_vec, hop_size) 23 22 total_frames += hop_size 24 except KeyboardInterrupt , e:25 print "stopped after", "%.2f seconds" % (total_frames /s.samplerate)26 p ass23 except KeyboardInterrupt: 24 duration = total_frames / float(s.samplerate) 25 print("stopped after %.2f seconds" % duration) 27 26 s.stop() 28 27
Note: See TracChangeset
for help on using the changeset viewer.