From f9ddd53ea1e239ff655dbb44b6bee4e12cb19ae6 Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Thu, 10 Oct 2013 15:44:36 +0200 Subject: [PATCH] Update code example and display result, delete keywords bloc and put keyword at the end of abstract --- CMMR_2013/poster/poster_cmmr2013.tex | 55 +++++++++++++++++++--------- 1 file changed, 37 insertions(+), 18 deletions(-) diff --git a/CMMR_2013/poster/poster_cmmr2013.tex b/CMMR_2013/poster/poster_cmmr2013.tex index 3f7f651..9e78813 100644 --- a/CMMR_2013/poster/poster_cmmr2013.tex +++ b/CMMR_2013/poster/poster_cmmr2013.tex @@ -45,7 +45,9 @@ frame=single, % adds a frame around the code commentstyle=\color{lstComments},% comment style backgroundcolor=\color{lstBkgrd}, % choose the background color - basicstyle=\scriptsize % the size of the fonts that are used for the code + basicstyle=\scriptsize, % the size of the fonts that are used for the code + keywordstyle=\color{blue}, % keyword style + showstringspaces=false, % underline spaces within strings only } \title[TELEMETA, audio web CMS for ethnomusicological sound archives]{TELEMETA, audio web Content Management System \\for ethnomusicological sound archives} @@ -101,11 +103,9 @@ { Contact : \href{mailto:guillaume@parisson.com}{guillaume@parisson.com} } \end{center} \end{minipage} +\textbf{KEYWORDS : Sound archives, Metadata, Ethnomusicology, Database, Audio labelling, Web platform} \end{block} - \begin{block}{Keyword}\small% bloc à virer ? est-ce utile ? -\textbf{Sound archives, Metadata, Ethnomusicology, Database, Audio labelling, Web platform} - \end{block} - + % ================================== % --------- Corps ----------------- % ================================== @@ -211,24 +211,43 @@ Given the extracted features, every sound item in a given collection can be auto Further works lead by the DIADEMS project will incorporate advance Music Information Retrieval methods in order to provide automatic annotation, segmentation and similarity analysis. \end{block} \begin{block}{Examples}\small - - \begin{minipage}[t]{0.6\linewidth} + \begin{minipage}{0.62\linewidth} \begin{lstlisting} -import timeside +>>> import timeside -# Setup the Processors -decoder = timeside.decoder.FileDecoder('sweep.wav') -analyzer = timeside.analyzer.Level() -grapher = timeside.grapher.Waveform() -encoder = timeside.encoder.VorbisEncoder('sweep.ogg') +>>> # Define some processors: +>>> decoder = timeside.decoder.FileDecoder('sweep.wav') +>>> analyzer = timeside.analyzer.Level() +>>> grapher = timeside.grapher.Spectrogram() +>>> encoder = timeside.encoder.VorbisEncoder('sweep.ogg') -# Run the pipe -(decoder | analyzer | grapher | encoder).run() -analyzer.results() +>>> # Then, the magic pipeline: +>>> (decoder | analyzer | grapher | encoder).run() -# Render the graph -grapher.render(output='image.png') +>>> # Get the results: +>>> grapher.render(output='image.png') +>>> for key in analyzer.results.keys(): + print '%s in %s : %s'% (analyzer.results[key].name, + analyzer.results[key].unit, + analyzer.results[key].data) \end{lstlisting} +\end{minipage} +\begin{minipage}{0.32\linewidth} + \begin{center} + \textbf{Results} + \begin{figure} + \centering + \includegraphics{img/image2.png} + \end{figure} + \end{center} +\begin{lstlisting} + + Level Analyzer Max:[-6.021] + Level Analyzer RMS:[-9.856] + +\end{lstlisting} + + \end{minipage} \end{block} -- 2.39.5