ref: 0c83de6589bf89e89e636878510449730e649f70
parent: b1c2acc0c013e232d8a5e051b7b3744707dd24c1
author: Paul Brossier <[email protected]>
date: Fri Jul 27 06:36:58 EDT 2012
demo_tss.py: add plotting
--- a/interfaces/python/demo_tss.py
+++ b/interfaces/python/demo_tss.py
@@ -33,3 +33,15 @@
steadstate = pw.rdo(stead_spec) # overlap-add synthesis of steady states
g(transients, read) # write transients to output
h(steadstate, read) # write steady states to output
+
+ del f, g, h # finish writing the files now
+
+ from demo_spectrogram import get_spectrogram
+ from pylab import subplot, show
+ subplot(311)
+ get_spectrogram(sys.argv[1])
+ subplot(312)
+ get_spectrogram(sys.argv[2])
+ subplot(313)
+ get_spectrogram(sys.argv[3])
+ show()