Changeset 1cc78e7


Ignore:
Timestamp:
Feb 22, 2014, 9:03:46 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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.