Changeset a0a073f


Ignore:
Timestamp:
Nov 30, 2016, 6:41:43 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, yinfft+
Children:
95bcdec
Parents:
8a49bb9
Message:

python/demos/demo_timestretch_online.py: use 512, fix block counter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/demos/demo_timestretch_online.py

    r8a49bb9 ra0a073f  
    1212import numpy as np
    1313
    14 win_s = 1024
     14win_s = 512
    1515hop_s = win_s // 8 # 87.5 % overlap
    1616
     
    9393    old_grain.phas = np.copy(cur_grain.phas)
    9494
     95    # until end of file
     96    if read < hop_s: break
     97    # increment block counter
    9598    block_read += 1
    96     if read < hop_s: break
    9799
    98100for t in range(warmup + 2): # purge the last frames from the phase vocoder
Note: See TracChangeset for help on using the changeset viewer.