Ignore:
Timestamp:
Mar 10, 2017, 2:26:32 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
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.
Message:

Merge branch 'master' into awhitening

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/demos/demo_pysoundcard_record.py

    r00d0275 r155cc10  
    1111    s = Stream(blocksize = hop_size, channels = 1)
    1212    g = sink(sink_path, samplerate = int(s.samplerate))
    13     print s.channels
    1413
    1514    s.start()
     
    2221            g(mono_vec, hop_size)
    2322            total_frames += hop_size
    24     except KeyboardInterrupt, e:
    25         print "stopped after", "%.2f seconds" % (total_frames / s.samplerate)
    26         pass
     23    except KeyboardInterrupt:
     24        duration = total_frames / float(s.samplerate)
     25        print("stopped after %.2f seconds" % duration)
    2726    s.stop()
    2827
Note: See TracChangeset for help on using the changeset viewer.