Changeset 4120fbc for python/demos/demo_tss.py
- Timestamp:
- May 16, 2016, 3:16:00 AM (9 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:
- dc654f8
- Parents:
- 416ddd1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_tss.py
r416ddd1 r4120fbc 6 6 if __name__ == '__main__': 7 7 if len(sys.argv) < 2: 8 print 'usage: %s <inputfile> <outputfile_transient> <outputfile_steady>' % sys.argv[0]8 print('usage: %s <inputfile> <outputfile_transient> <outputfile_steady>' % sys.argv[0]) 9 9 sys.exit(1) 10 10 11 11 samplerate = 44100 12 win_s = 1024 # fft size13 hop_s = win_s / 4 # block size12 win_s = 1024 # fft size 13 hop_s = win_s // 4 # block size 14 14 threshold = 0.5 15 15
Note: See TracChangeset
for help on using the changeset viewer.