projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1bd8334
)
python/demos/demo_tss.py: improve default parameters, exit before plotting
author
Paul Brossier
<piem@piem.org>
Sat, 20 Aug 2016 17:28:20 +0000
(19:28 +0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 20 Aug 2016 17:28:20 +0000
(19:28 +0200)
python/demos/demo_tss.py
patch
|
blob
|
history
diff --git
a/python/demos/demo_tss.py
b/python/demos/demo_tss.py
index
f8c29aa
..
1a56b4f
100755
(executable)
--- a/
python/demos/demo_tss.py
+++ b/
python/demos/demo_tss.py
@@
-10,8
+10,7
@@
if __name__ == '__main__':
samplerate = 44100
win_s = 1024 # fft size
samplerate = 44100
win_s = 1024 # fft size
- hop_s = win_s // 4 # block size
- threshold = 0.5
+ hop_s = win_s // 8 # block size
f = source(sys.argv[1], samplerate, hop_s)
g = sink(sys.argv[2], samplerate)
f = source(sys.argv[1], samplerate, hop_s)
g = sink(sys.argv[2], samplerate)
@@
-21,7
+20,9
@@
if __name__ == '__main__':
pvb = pvoc(win_s, hop_s) # another phase vocoder
t = tss(win_s, hop_s) # transient steady state separation
pvb = pvoc(win_s, hop_s) # another phase vocoder
t = tss(win_s, hop_s) # transient steady state separation
- t.set_threshold(threshold)
+ t.set_threshold(0.01)
+ t.set_alpha(3.)
+ t.set_beta(4.)
read = hop_s
read = hop_s
@@
-35,6
+36,7
@@
if __name__ == '__main__':
h(steadstate, read) # write steady states to output
del f, g, h # finish writing the files now
h(steadstate, read) # write steady states to output
del f, g, h # finish writing the files now
+ sys.exit(0)
from demo_spectrogram import get_spectrogram
from pylab import subplot, show
from demo_spectrogram import get_spectrogram
from pylab import subplot, show