]> git.parisson.com Git - timeside-diadems.git/commitdiff
clean examples, fix test_pipe
authoryomguy <yomguy@parisson.com>
Fri, 18 Jun 2010 22:54:43 +0000 (22:54 +0000)
committeryomguy <yomguy@parisson.com>
Fri, 18 Jun 2010 22:54:43 +0000 (22:54 +0000)
INSTALL

diff --git a/INSTALL b/INSTALL
index c622564d9ff72bd361556bdbcb003844301d1903..c5adc7431d3b2a67470cc26b1993eeeddcddd6f6 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -72,7 +72,8 @@ And change only the following variables of the GrapherScheme object::
 
         self.color_scheme = {
             'waveform': [ # Four (R,G,B) tuples for three main color channels for the spectral centroid method
-                        (50,0,200), (0,220,80), (255,224,0), (255,0,0)
+                        (173,173,173), (147,149,196), (77,80,138), (108,66,0)
+                        # this is a purple one
                         ],
             'spectrogram': [
                         (0, 0, 0), (58/4,68/4,65/4), (80/2,100/2,153/2), (90,180,100), (224,224,44), (255,60,30), (255,255,255)
@@ -104,9 +105,11 @@ For example, a normalization and a waveform, from a python shell::
 
 >>> decoder  =  timeside.decoder.FileDecoder('source.wav')
 >>> grapher  =  timeside.grapher.Waveform('image.png')
->>> encoder  =  timeside.encoder.WavEncoder('normalized.wav')
->>> (decoder | grapher | encoder).run()
+>>> analyzer =  timeside.analyzer.MaxLevel()
+>>> encoder  =  timeside.encoder.WavEncoder('output.wav')
+>>> (decoder | grapher | analyzer | encoder).run()
 >>> grapher.render()
+>>> print 'Level:', analyzer.result()
 
 
 See the website for more examples and information about the TimeSide API: