Changeset 1cc78e7 for python


Ignore:
Timestamp:
Feb 22, 2014, 9:03:46 PM (11 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, pitchshift, sampler, timestretch, yinfft+
Children:
d7ac23f
Parents:
9aa0af3
Message:

python/demos/demo_source_auto_samplerate.py: define hop_size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/demos/demo_source_auto_samplerate.py

    r9aa0af3 r1cc78e7  
    88    print 'usage: %s <inputfile>' % sys.argv[0]
    99    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
    1314  while read:
    1415    vec, read = f()
Note: See TracChangeset for help on using the changeset viewer.