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)
>>> 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: