Add backports repository to the apt sources.list::
- $ echo "deb http://www.backports.org/debian lenny-backports main contrib non-free" | tee -a /etc/apt/sources.list
+ $ echo "deb http://www.backports.org/debian lenny-backports main contrib non-free" | tee -a /etc/apt/sources.list
Note : you can paste the full command but without the shell character '$'.
Then :
Say 'YES' to all questions. Then::
$ apt-get install -t lenny-backports vim subversion python python-setuptools python-xml python-mutagen \
- python-imaging python-numpy python-gst0.10, gstreamer0.10-plugins-base \
- gstreamer0.10-plugins-fluendo-mp3 gstreamer0.10-plugins-good
+ python-imaging python-numpy python-gst0.10 gstreamer0.10-plugins-base \
+ gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-good
Install TimeSide
>>> decoder = timeside.decoder.FileDecoder('source.wav')
>>> grapher = timeside.grapher.Waveform('image.png')
->>> max = timeside.analyzer.MaxLevel()
>>> encoder = timeside.encoder.WavEncoder('normalized.wav')
->>> (decoder | max).run()
->>> gain = max.result() > 0 and (1 / max.result()) or 1
->>> (decoder | Gain(gain) | grapher | encoder).run()
+>>> (decoder | grapher | encoder).run()
See the website for more examples and information about the TimeSide API:
from timeside.core import FixedSizeInputAdapter
-color_schemes = {
+default_color_schemes = {
'default': {
'waveform': [(50,0,200), (0,220,80), (255,224,0), (255,0,0)],
'spectrogram': [(0, 0, 0), (58/4,68/4,65/4), (80/2,100/2,153/2), (90,180,100),
if isinstance(color_scheme, dict):
colors = color_scheme['waveform']
else:
- colors = color_schemes[self.color_scheme]['waveform']
+ colors = default_color_schemes[self.color_scheme]['waveform']
self.color_lookup = interpolate_colors(colors)