Dive in¶
Let’s produce a really simple audio analysis of an audio file. First, list all available plugins:
>>> import timeside.core
>>> timeside.core.list_processors()
IProcessor
==========
...
Define some processors:
>>> from timeside.core import get_processor
>>> from timeside.core.tools.test_samples import samples
>>> wavfile = samples['sweep.wav']
>>> decoder = get_processor('file_decoder')(wavfile)
>>> grapher = get_processor('waveform_simple')()
>>> analyzer = get_processor('level')()
>>> encoder = get_processor('vorbis_encoder')('sweep.ogg')
Then run the magic pipeline:
>>> (decoder | grapher | analyzer | encoder).run()
Render the grapher results:
>>> grapher.render(output='waveform.png')
Show the analyzer results:
>>> print 'Level:', analyzer.results
Level: {'level.max': AnalyzerResult(...), 'level.rms': AnalyzerResult(...)}
So, in only one pass, the audio file has been decoded, analyzed, graphed and transcoded.
For more extensive examples, please see the full documentation.