From 18e6d00c075b6eab2ab5c73f8843d694317eb823 Mon Sep 17 00:00:00 2001 From: yomguy Date: Fri, 18 Jun 2010 22:54:43 +0000 Subject: [PATCH] clean examples, fix test_pipe --- INSTALL | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/INSTALL b/INSTALL index c622564..c5adc74 100644 --- 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: -- 2.39.5