projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6639eb1
)
interfaces/python/demo_spectrogram.py: hide noise
author
Paul Brossier
<piem@piem.org>
Mon, 30 Jul 2012 18:10:58 +0000
(12:10 -0600)
committer
Paul Brossier
<piem@piem.org>
Mon, 30 Jul 2012 18:10:58 +0000
(12:10 -0600)
interfaces/python/demo_spectrogram.py
patch
|
blob
|
history
diff --git
a/interfaces/python/demo_spectrogram.py
b/interfaces/python/demo_spectrogram.py
index 2801ee0bd18afb43e2c8c96f24bf2db2bec7d1b2..e544ac3a37cefaba2cee2d0ed5819af1662c44e5 100755
(executable)
--- a/
interfaces/python/demo_spectrogram.py
+++ b/
interfaces/python/demo_spectrogram.py
@@
-22,7
+22,7
@@
def get_spectrogram(filename):
if read < a.hop_size: break
# plotting
- imshow(log10(specgram.T), origin = 'bottom', aspect = 'auto', cmap=cm.gray_r)
+ imshow(log10(specgram.T
+ .001
), origin = 'bottom', aspect = 'auto', cmap=cm.gray_r)
axis([0, len(specgram), 0, len(specgram[0])])
ylabel('Frequency (Hz)')
xlabel('Time (s)')