Changeset 773a7f3
- Timestamp:
- Aug 20, 2016, 7:28:20 PM (8 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_tss.py
r1bd8334 r773a7f3 11 11 samplerate = 44100 12 12 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 15 14 16 15 f = source(sys.argv[1], samplerate, hop_s) … … 22 21 t = tss(win_s, hop_s) # transient steady state separation 23 22 24 t.set_threshold(threshold) 23 t.set_threshold(0.01) 24 t.set_alpha(3.) 25 t.set_beta(4.) 25 26 26 27 read = hop_s … … 36 37 37 38 del f, g, h # finish writing the files now 39 sys.exit(0) 38 40 39 41 from demo_spectrogram import get_spectrogram
Note: See TracChangeset
for help on using the changeset viewer.