Changeset 773a7f3 for python/demos


Ignore:
Timestamp:
Aug 20, 2016, 7:28:20 PM (8 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:
6a72ff0
Parents:
1bd8334
Message:

python/demos/demo_tss.py: improve default parameters, exit before plotting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/demos/demo_tss.py

    r1bd8334 r773a7f3  
    1111    samplerate = 44100
    1212    win_s = 1024       # fft size
    13     hop_s = win_s // 4 # block size
    14     threshold = 0.5
     13    hop_s = win_s // 8 # block size
    1514
    1615    f = source(sys.argv[1], samplerate, hop_s)
     
    2221    t = tss(win_s, hop_s)       # transient steady state separation
    2322
    24     t.set_threshold(threshold)
     23    t.set_threshold(0.01)
     24    t.set_alpha(3.)
     25    t.set_beta(4.)
    2526
    2627    read = hop_s
     
    3637
    3738    del f, g, h                           # finish writing the files now
     39    sys.exit(0)
    3840
    3941    from demo_spectrogram import get_spectrogram
Note: See TracChangeset for help on using the changeset viewer.