From: yomguy Date: Mon, 21 Nov 2011 22:02:53 +0000 (+0100) Subject: cleanup doc X-Git-Tag: 0.3.2~18 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a95d9e6165a2e034dd23a95a3bb5df0582393032;p=timeside.git cleanup doc --- diff --git a/INSTALL b/INSTALL deleted file mode 100644 index d35595a..0000000 --- a/INSTALL +++ /dev/null @@ -1,127 +0,0 @@ -================ -Install TimeSide -================ - -This file describe how to install the TimeSide python package from source. - - -1. Install dependencies -======================= - -TimeSide needs some other python modules to run. -See README for the full dependency list. - -The following methods explain how to install all dependencies on a Debian based system -and espacially on Debian Squeeze 6.0 (stable). Is it now considered you have install this system correctly. - -Become root. In a terminal or console, run:: - - $ su - -Write your root password. -Note : you can paste the full command but without the shell character '$'. -Then:: - - $ aptitude update - $ aptitude install python python-gobject gobject-introspection python-setuptools python-xml python-mutagen \ - python-imaging python-numpy python-scipy python-gst0.10 gstreamer0.10-plugins-base gir1.0-gstreamer-0.10 \ - gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-good gstreamer0.10-plugins-bad - -Add Debian multimedia repository to the apt sources.list and install Gstreamer MP3 modules:: - - $ echo "deb deb http://www.debian-multimedia.org stable main" | tee -a /etc/apt/sources.list - $ aptitude update - $ aptitude install gstreamer0.10-fluendo-mp3 gstreamer0.10-lame - - -2. Install TimeSide -=================== - -Go into the module directory and then install:: - - $ cd timeside - $ python setup.py install - -This installs all timeside sub modules as decoders, encoders, analyzers, graphers and -a few scripts. - - -3. Use TimeSide -=============== - -3.1. Waveform batching ----------------------- - -You can use waveform_batch to create some waveforms from a media (audio) directory, type:: - - $ waveform_batch /path/to/media_dir /path/to/img_dir - -Please use absolute paths. For example:: - - $ waveform_batch /home/$user/music/mp3/ /home/$USER/images/ - - -To change the color scheme or the size of the waveforms, edit the waveform_batch script:: - - $ vi timeside/tools/waveform_batch - -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 - (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) - ]} - - # Width of the image - self.width = 2048 - - # Height of the image - self.height = 128 - - # Background color - self.bg_color = (255,255,255) - - # Force computation. By default, the class doesn't overwrite existing image files. - self.force = False - -Save the script and re-run setup:: - - $ python setup.py install - - -3.2. Any other pipe processing ! --------------------------------- - -For example, a normalization and a waveform, from a python shell:: - ->>> import timeside - ->>> decoder = timeside.decoder.FileDecoder('source.wav') ->>> grapher = timeside.grapher.Waveform() ->>> analyzer = timeside.analyzer.MaxLevel() ->>> encoder = timeside.encoder.WavEncoder('output.wav') ->>> (decoder | grapher | analyzer | encoder).run() ->>> grapher.render(output='image.png') ->>> print 'Level:', analyzer.result() - - -4. TimeSide UI --------------- - -See http://code.google.com/p/timeside/wiki/UiGuide - - -5. More informations -==================== - -See the website for more examples and information about the TimeSide API: - -http://code.google.com/p/timeside/ - -http://code.google.com/p/timeside/wiki/PythonApi - -http://code.google.com/p/timeside/source/browse/trunk/timeside/api.py diff --git a/INSTALL.html b/INSTALL.html deleted file mode 100644 index 0e460a7..0000000 --- a/INSTALL.html +++ /dev/null @@ -1,411 +0,0 @@ - - - - - - -Install TimeSide - - - -
-

Install TimeSide

- -

This file describe how to install the TimeSide python package from source.

-
-

1. Install dependencies

-

TimeSide needs some other python modules to run. -See README for the full dependency list.

-

The following methods explain how to install all dependencies on a Debian based system -and espacially on Debian Lenny 5.x Stable. Is it now considered you have install this system correctly.

-

Become root. In a terminal or console, run:

-
-$ su
-
-

Write your root password.

-

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

Note : you can paste the full command but without the shell character '$'. -Then :

-
-

$ apt-get update

-

$ apt-get -t lenny-backports upgrade

-
-

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-fluendo-mp3 gstreamer0.10-plugins-good
-
-
-
-

2. Install TimeSide

-

Get the code and install:

-
-$ svn export http://timeside.googlecode.com/svn/trunk/ timeside
-$ cd timeside
-$ python setup.py install
-
-

This installs all timeside sub modules as decoders, encoders, analyzers, graphers and -a few scripts.

-
-
-

3. Use TimeSide

-
-

3.1. Waveform batching

-

You can use waveform_batch to create some waveforms from a media (audio) directory, type:

-
-$ waveform_batch /path/to/media_dir /path/to/img_dir
-
-

Please use absolute paths. For example:

-
-$ waveform_batch /home/$user/music/mp3/ /home/$USER/images/
-
-

To change the color scheme or the size of the waveforms, edit the waveform_batch script:

-
-$ vi timeside/tools/waveform_batch
-
-

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
-                (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)
-                ]}
-
-# Width of the image
-self.width = 2048
-
-# Height of the image
-self.height = 128
-
-# Background color
-self.bg_color = (255,255,255)
-
-# Force computation. By default, the class doesn't overwrite existing image files.
-self.force = False
-
-

Save the script and re-run setup:

-
-$ python setup.py install
-
-
-
-

3.2. Any other pipe processing !

-

For example, a normalization and a waveform, from a python shell:

-
->>> import timeside
-
-
->>> decoder  =  timeside.decoder.FileDecoder('source.wav')
->>> grapher  =  timeside.grapher.Waveform(output='image.png')
->>> analyzer =  timeside.analyzer.MaxLevel()
->>> encoder  =  timeside.encoder.WavEncoder('output.wav')
->>> (decoder | grapher | analyzer | encoder).run()
->>> grapher.render()
->>> print 'Level:', analyzer.result()
-
-
- -
-
-

5. More informations

-

See the website for more examples and information about the TimeSide API:

-

http://code.google.com/p/timeside/

-

http://code.google.com/p/timeside/wiki/PythonApi

-

http://code.google.com/p/timeside/source/browse/trunk/timeside/api.py

-
-
- - - diff --git a/INSTALL.rst b/INSTALL.rst new file mode 100644 index 0000000..d35595a --- /dev/null +++ b/INSTALL.rst @@ -0,0 +1,127 @@ +================ +Install TimeSide +================ + +This file describe how to install the TimeSide python package from source. + + +1. Install dependencies +======================= + +TimeSide needs some other python modules to run. +See README for the full dependency list. + +The following methods explain how to install all dependencies on a Debian based system +and espacially on Debian Squeeze 6.0 (stable). Is it now considered you have install this system correctly. + +Become root. In a terminal or console, run:: + + $ su + +Write your root password. +Note : you can paste the full command but without the shell character '$'. +Then:: + + $ aptitude update + $ aptitude install python python-gobject gobject-introspection python-setuptools python-xml python-mutagen \ + python-imaging python-numpy python-scipy python-gst0.10 gstreamer0.10-plugins-base gir1.0-gstreamer-0.10 \ + gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-good gstreamer0.10-plugins-bad + +Add Debian multimedia repository to the apt sources.list and install Gstreamer MP3 modules:: + + $ echo "deb deb http://www.debian-multimedia.org stable main" | tee -a /etc/apt/sources.list + $ aptitude update + $ aptitude install gstreamer0.10-fluendo-mp3 gstreamer0.10-lame + + +2. Install TimeSide +=================== + +Go into the module directory and then install:: + + $ cd timeside + $ python setup.py install + +This installs all timeside sub modules as decoders, encoders, analyzers, graphers and +a few scripts. + + +3. Use TimeSide +=============== + +3.1. Waveform batching +---------------------- + +You can use waveform_batch to create some waveforms from a media (audio) directory, type:: + + $ waveform_batch /path/to/media_dir /path/to/img_dir + +Please use absolute paths. For example:: + + $ waveform_batch /home/$user/music/mp3/ /home/$USER/images/ + + +To change the color scheme or the size of the waveforms, edit the waveform_batch script:: + + $ vi timeside/tools/waveform_batch + +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 + (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) + ]} + + # Width of the image + self.width = 2048 + + # Height of the image + self.height = 128 + + # Background color + self.bg_color = (255,255,255) + + # Force computation. By default, the class doesn't overwrite existing image files. + self.force = False + +Save the script and re-run setup:: + + $ python setup.py install + + +3.2. Any other pipe processing ! +-------------------------------- + +For example, a normalization and a waveform, from a python shell:: + +>>> import timeside + +>>> decoder = timeside.decoder.FileDecoder('source.wav') +>>> grapher = timeside.grapher.Waveform() +>>> analyzer = timeside.analyzer.MaxLevel() +>>> encoder = timeside.encoder.WavEncoder('output.wav') +>>> (decoder | grapher | analyzer | encoder).run() +>>> grapher.render(output='image.png') +>>> print 'Level:', analyzer.result() + + +4. TimeSide UI +-------------- + +See http://code.google.com/p/timeside/wiki/UiGuide + + +5. More informations +==================== + +See the website for more examples and information about the TimeSide API: + +http://code.google.com/p/timeside/ + +http://code.google.com/p/timeside/wiki/PythonApi + +http://code.google.com/p/timeside/source/browse/trunk/timeside/api.py diff --git a/README.html b/README.html deleted file mode 100644 index 752f02b..0000000 --- a/README.html +++ /dev/null @@ -1,356 +0,0 @@ - - - - - - -README - - - -
-

README

- -

TimeSide is a set of client and server side components for audio-enabling web sites and applications. -It includes a powerful DHTML-based interactive player, with support for time-marking. -The server side components provide generic APIs for easy transcoding, metadata embedding, -sound visualization and audio analysis.

-
-

Platforms

-

TimeSide is intended to work on all Unix / Linux platforms. -MacOS X and Windows versions will soon be explorated.

-
-
-

Dependencies

-

For TimeSide Core:

-
-python (>= 2.4), python-xml, python-mutagen, python-imaging (>= 1.1.6),python-numpy,
-python-setuptools (>= 0.6b3), python-gst0.10, gstreamer0.10-plugins-base,
-gstreamer0.10-plugins-fluendo-mp3, gstreamer0.10-plugins-good
-
-

For TimeSide UI (optional):

-
-* SoundManager 2 >= 2.91 : http://www.schillmania.com/projects/soundmanager2
-* jQuery => 1.2.6 : http://www.jquery.com
-* jsGraphics => 3.03 http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
-* See timeside/ui/README
-
-
- -
-

License

-

TimeSide is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version.

-

TimeSide is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details.

-

See LICENSE for more details.

-
-
-

Install

-

See INSTALL for full details.

-
-
-

Contact and Informations

-

See http://code.google.com/p/timeside/

-
-
- - -