hordia's blogs http://h.ordia.com.ar/planet en hordia's blogs - http://h.ordia.com.ar/planet AudioResearchBlog: CLAM processing generator script (example of use) http://audiores.uint8.com.ar/blog/2008/07/07/clam-processing-generator-script-example-of-use/ http://audiores.uint8.com.ar/blog/2008/07/07/clam-processing-generator-script-example-of-use/ <p>This script is about a basic code generation of a <a href="http://www.clam.iua.upf.edu/" class="linkthumb">CLAM</a> plugin. In some point I think this is some kind of <a href="http://en.wikipedia.org/wiki/Metaprogramming" class="linkthumb">meta-programming</a> or perhaps the term &#8220;<a href="http://en.wikipedia.org/wiki/Automatic_programming" class="linkthumb">automatic programming</a>&#8221; fits better. The basic idea is to specify some basic features of the planned new processing in a plain text and then, generate some code with the script, saving in this way many of the often repetitive and mechanical work needed to set-up a new processing from scratch. Main intention is to allow concentrate in the Do() function or plugin details quickly.</p> <p>As an example, I will reproduce here how I worked with me some time ago:<br /> &nbsp;<br /> One day, in the irc #clam channel:<br /> &#8220;[11:51] &#60;groton&#62; Consul, do you know if there is any trigger-like processing unit, list when the volume gets louder than a threshold or something like that&#8221;</p> <p>I&#8217;m not Consul in the irc (I&#8217;m <a href="http://h.ordia.com.ar/" class="linkthumb">hordia</a>), but next day at my console&#8230;</p> <p>cd CLAM/scripts/TemplatedPluginsGenerator<br /> vi ThresholdTrigger.template</p> <p><span><pre class="php">Name:ThresholdTriggerTemplate BaseClass:Processing i:AudioInPort,Audio Input ic:<span>0</span>,<span>1</span>,Threshold oc:<span>0</span>,<span>1</span>,Trigger</pre></span></p> <p>In words, this means a Processing template named &#8220;ThresholdTriggerTemplate&#8221; using &#8220;Processing&#8221; as a base class and with one input of &#8220;AudioInPort&#8221; type named &#8220;Audio Input&#8221;, with one in control in the 0..1 range named &#8220;Threshold&#8221; and one out control named &#8220;Trigger&#8221;. Of course, you can add as many inputs/outputs of ports or controls as you want.<br /> &nbsp;</p> <p>This script creates the template:<br /> <pre class="php">./TemplateGenerator.py ThresholdTrigger.template</pre></p> <p>&nbsp;<br /> And this one the processing plugin:<br /> <pre class="php">./TemplatedPluginsGenerator.py ThresholdTrigger ThresholdTriggerTemplate <span>&quot;Hernán Ordiales&quot;</span> GPL <span>2008</span></pre></p> <p>Again in words, this means create a new processing called &#8220;ThresholdTrigger&#8221; based on the &#8220;ThresholdTriggerTemplate&#8221; filling the copyright with my name plus the current year and the license with the GPL text.</p> <p>&nbsp;<br /> A final edit just typing the required code for the Do() function:<br /> <pre class="php">cd CLAM/plugins/ThresholdTrigger vi ThresholdTrigger.hxx</pre></p> <p><span><pre class="c"><span>#include &lt;cmath&gt;</span> &nbsp; bool <span>Do</span><span>&#40;</span><span>&#41;</span> <span>&#123;</span> bool result = <span>Do</span><span>&#40;</span> mAudioInput.<span>GetAudio</span><span>&#40;</span><span>&#41;</span> <span>&#41;</span>; mAudioInput.<span>Consume</span><span>&#40;</span><span>&#41;</span>; <span>return</span> result; <span>&#125;</span> &nbsp; bool <span>Do</span><span>&#40;</span><span>const</span> Audio&amp; in<span>&#41;</span> <span>&#123;</span> <span>int</span> size = in.<span>GetSize</span><span>&#40;</span><span>&#41;</span>; <span>const</span> DataArray&amp; inb = in.<span>GetBuffer</span><span>&#40;</span><span>&#41;</span>; TData threshold = mThreshold.<span>GetLastValue</span><span>&#40;</span><span>&#41;</span>; bool trigger = <span>0</span>; <span>for</span> <span>&#40;</span><span>int</span> i=<span>0</span>;i&lt;size ;i++<span>&#41;</span> <span>&#123;</span> <span>if</span> <span>&#40;</span>std::<span>fabs</span><span>&#40;</span>inb<span>&#91;</span>i<span>&#93;</span><span>&#41;</span>&gt;threshold<span>&#41;</span> trigger = <span>1</span>; <span>&#125;</span> mTrigger.<span>SendControl</span><span>&#40;</span>trigger<span>&#41;</span>; <span>return</span> <span>true</span>; <span>&#125;</span> &lt;/size&gt;&lt;/cmath&gt;</pre></span></p> <p>At this point, just remains add the <a href="http://iua-share.upf.es/wikis/clam/index.php/Building_a_processing_library" class="linkthumb">basic SConstruct file for a CLAM plugin</a>, compile it with the corresponding clam_prefix and install it:<br /> <pre class="php">scons install clam_prefix=<span>$CLAM_PATH</span> NetworkEditor</pre></p> <p>And ready to use&#8230;</p> <p>This example it&#8217;s very simple and has a poor implementation but was just to show the idea of how those scripts can save a lot of work. </p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=191&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_191" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/2008/07/07/clam-processing-generator-script-example-of-use/#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=191" width="100" height="15" /></a></div> Mon, 07 Jul 2008 20:58:49 +0000 AudioResearchBlog: Radio de Last.fm, "recordando" las canciones nuevas que escucho y me gustan http://audiores.uint8.com.ar/blog/2008/07/07/radio-de-lastfm-recordando-las-canciones-nuevas-que-escucho-y-me-gustan/ http://audiores.uint8.com.ar/blog/2008/07/07/radio-de-lastfm-recordando-las-canciones-nuevas-que-escucho-y-me-gustan/ <p>Este post surge dado que recientemente redescubrí la radio de <a href="http://www.last.fm/" class="linkthumb">last.fm</a>. Principalmente gracias a que me bajé el <a href="http://www.last.fm/download/" class="linkthumb">programa que proveen ellos</a> (btw, multiplaforma y Software Libre). Digo que redescubrí porque antes la usaba desde el <a href="http://amarok.kde.org/" class="linkthumb">amarok</a>, cosa que esta bien, ya que uno centraliza todo ahi, pero este programita tiene algunas cosas piolas y en algunas situaciones es mucho más cómodo de usar, sobre todo para cambiar de radios, por artistas o tags, etc y encima te tira algo de data (parecido a lo que tiene el amarok que busca en wikipedia, nada más que &#8220;propiedad&#8221; de last.fm). Pero lo que me hizo &#8220;engancharme&#8221; es el tema de poner un artista que me guste y que me empiece a tirar temas con la misma onda, cosa que me hace conocer canciones e interpretes nuevos. ¿Por qué cuento esto? Por que desencadeno en que comience a usar seguido el botón de &#8220;Love&#8221;/&#8221;Favorito&#8221; de la aplicación, que es una forma de decirle a <a href="http://www.last.fm/" class="linkthumb">last.fm</a> que ese tema te gusta y que lo tenga en cuenta para volverlo a pasar en el futuro o para (supongo) que tengan más probabilidad de aparecer temas similares (si no te gusta para nada, también se puede &#8220;bannear&#8221;). Bueno, todo esto viene dado que de tanto presionar &#8220;love&#8221; (y descubrir/redescubrir varios artistas, sobre todo en blues y jazz) queria tener una forma de acceder a todo eso (nombre del tema + interprete). El programa en cuestión muestra una lista de las canciones recientemente maracadas como favoritas, pero no permite copy&#038;paste y <del datetime="2008-07-20T23:58:54+00:00">tampoco vía <a href="http://www.last.fm" class="linkthumb">web</a> hay forma de acceder a esa información, como si pasa con otras cosas, por ejemplo las canciones recientemente escuchadas&#8230;</del> (con la nueva versión del sitio si se puede: <a href="http://blog.last.fm/2008/07/17/lastfm-the-next-generation" class="linkthumb">Last.fm: The Next Generation</a>)</p> <p>Bueno, buscando un poco di con la <a href="http://www.last.fm/api/" class="linkthumb">API (versión 2.0)</a>, al parecer reciente, pero sin la capacidad de &#8220;recuperar&#8221; las últimas loved songs&#8230; asi que me remití a la <a href="http://www.audioscrobbler.net/data/webservices/" class="linkthumb">versión 1.0</a> que si lo permite y además se puede usar sin <a href="http://www.last.fm/api/account" class="linkthumb">api key</a>. Entonces lo que hice fue armarme un script en python que descargara las últimas canciones &#8220;favoritas&#8221; y las vaya guardando en un xml (o .txt), es decir a medida que aparecen nuevas, las agrega y elimina los duplicados&#8230;</p> <p>El script es este: <a href="http://audiores.uint8.com.ar/files/code/python/last.fm/recentLovedTracksList.py" class="linkthumb">recentLovedTracksList.py</a></p> <p>Tip: si uno quiere estar seguro de no perderse ninguna canción, dado que las &#8220;canciones favoritas recientes&#8221; son solo 10, puede poner este script a correr en cron&#8230; (si es que va marcar muchas canciones como favoritas, pero a lo sumo y con mucha suerte uno marca como &#8220;loved&#8221; una por hora y la frecuencia por supuesto tiende bajar)</p> <p>Ya que estaba jugando con la api, hice otro script para descargarme todo el historial de escucha (otra &#8220;feature&#8221; que no vi disponible vía web, pero por suerte con un poco de &#8220;hacking&#8221; se puede hacer con la API):</p> <p><a href="http://audiores.uint8.com.ar/files/code/python/last.fm/lastfmProfileBackup.py" class="linkthumb">lastfmProfileBackup.py</a></p> <p>No se para que me puede servir, pero es info mía y ya que la tiene otra persona, al menos me gusta poder tenerla yo <img src="http://audiores.uint8.com.ar/blog/wp-includes/images/smilies/icon_razz.gif" alt=":-P" class="wp-smiley" /> </p> <h2>Otras aplicaciones</h2> <p>Ya que escribo sobre <a href="http://www.last.fm/" class="linkthumb">last.fm</a> aprovecho para comentar un par de &#8220;nuevos usos&#8221; que se me ocurrieron de este tipo de sistemas, ambos se aplican a un player haciendo <a href="http://www.lastfm.es/help/" class="linkthumb">scrobbling</a> en una fiesta/reunión:</p> <ul> <li>Con esto se tiene automáticamente trackeada y publicada la lista de canciones que se escucharon. ¿Cuantas veces uno quiere saber como se llama esa canción que le gustó el día anterior para poder volverla a escucharla?</li> <li>Si uno no quiere estar eligiendo música, pero quiere asegurarse que va a escuchar algo de su agrado, puede poner su radio personalizada y listo&#8230; &#8220;satisfacción garantizada&#8221; <img src="http://audiores.uint8.com.ar/blog/wp-includes/images/smilies/icon_razz.gif" alt=":P" class="wp-smiley" /> . Esta feature ahora es paga, pero dado que cualquier usuario puede escuchar la radio del otro&#8230; no es difícil imaginarse como se puede salvaguardar este punto&#8230; de todas formas, la suscripción no es cara, alrededor de 3 euros por mes (creo).</li> </ul> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=193&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_193" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/2008/07/07/radio-de-lastfm-recordando-las-canciones-nuevas-que-escucho-y-me-gustan/#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=193" width="100" height="15" /></a></div> Mon, 07 Jul 2008 04:22:26 +0000 AudioResearchBlog: La historia de Horgand (conversación con holborn) http://audiores.uint8.com.ar/blog/?p=186 http://audiores.uint8.com.ar/blog/2008/06/28/la-historia-de-horgand-conversacion-con-holborn/ <p>Hace bastante tiempo que tenia archivada esta conversación sobre <a href="http://es.wikipedia.org/wiki/S%C3%ADntesis_por_modulaci%C3%B3n_de_frecuencias" class="linkthumb">síntesis por FM</a> y <a href="http://horgand.berlios.de/" class="linkthumb">Horgand</a> que quería publicar.</p> <p>Qué es <a href="http://horgand.berlios.de/" class="linkthumb">Horgand</a>? un sintetizador por soft capaz de realizar sonidos de órgano y otros tipos de sonido como pianos eléctricos (Rhodes , Wurlitzer, DX E.Piano ), Jazz Guitar, Strings, Brass, Fretless Bass, Accordion etc. Esta basado en síntesis por FM, según su <a href="http://horgand.berlios.de/" class="linkthumb">web</a>:</p> <blockquote><p>&#8220;Is based on a FM audio synthesizer with twenty carriers (20) without modulators in a plain based algorithm.<br /> each carrier frequency can be modified for construct complex sounds. The synthesizer incorporate also a LFO (Low frequency oscillator) for generate tremolo effects and detune effects applying LFO Pitch and Amplitude to the carrier frequency&#8217;s. Some synthesizer parameters can be edited for each sound including two ADSR, (Normal and Percussion), Fine Frequency, Attenuation, Rotary Amplitude, Transpose, etc. Four DSP effects are available for obtain more complex sounds, Rotary, Chorus, Delay and Reverberation. Sounds are stored in banks of 32 organ sounds and can be changed externally with MIDI program change (1-32).&#8221;</p></blockquote> <p>También incorpora reconocimiento de acordes para producir acompañamiento automático (bajo y bateria) y con líneas de bajo editables para cada ritmo.</p> <p>Ejemplo de como suena: <a href="http://horgand.berlios.de/Horgand_demo.ogg" class="linkthumb">Horgand_demo.ogg</a></p> <p>No conozco mucho de <a href="http://es.wikipedia.org/wiki/S%C3%ADntesis_por_modulaci%C3%B3n_de_frecuencias" class="linkthumb">síntesis por FM</a> y tenía curiosidad de como lograba el sonido y terminó saliendo una especie de entrevista improvisada, creo que puede ser interesante para quienes quieran adentrarse en este tipo de programación.</p> <p><strong>La conversación:</strong><br /> &#8212;<br /> &#60;hordia&#62; despues me tenes que contar en que te basaste para conseguir el sonido de horgand digitalmente&#8230;<br /> &#60;holborn&#62; pues en el DX7 &#8230;. tiene 32 algoritmos de colocacion de los operadores &#8230; pero si usas el plano (todos en linea)&#8230; todo lo que hagas suena a organo &#8230; a partir de ahi &#8230; pues añadirle los efectos &#8230; y claro en vez de 6 &#8220;osciladores&#8221; hay 10 &#8230; que en realidad son 20 &#8230; con lo cual pues es mas rico que un emulador de dx7 tipo hexter o en el dx7 mismo &#8230; en realidad .. para usar 20 osciladores no chupa CPU nada &#8230; otros porgramas usan 3 y ch<br /> &#60;holborn&#62; claro que para ahorrar cpu .. tuve que limitar algunos parametros de edicion &#8230; pero bueno &#8230; yo lo que queria era que sonara &#8230; si nadie se pone a editar sonidos &#8230; ni dios vaya &#8230;<br /> &#60;hordia&#62; que es el DX7? <img src="http://audiores.uint8.com.ar/blog/wp-includes/images/smilies/icon_razz.gif" alt=":P" class="wp-smiley" /> me suena a un teclado legendario pero no estoy seguro&#8230;</p> <p>&#60;holborn&#62; el DX7 fue el primer sintetizador FM &#8230; es de yamaha .. y fue una revolucion porque era el primero que mas o menos imitaba bien sonidos reales &#8230; algunos mejor que otros &#8230;<br /> &#60;holborn&#62; los vendieron todos y mas &#8230;<br /> &#60;holborn&#62; yo realmente era un experto &#8230; en aquella epoca ni dios sabia nada de musica electronica &#8230; yo me hice un curso que daba un loco de la musica electronica .. y sabia programar sintes cosa que nadie sabia .. te estoy hablando de hace mil años &#8230;<br /> &#60;holborn&#62; cuando salio el DX7 pues me tuve que empapar toda la info porque realmente es muy diferente a un sinte analogico tradicional &#8230; y bueno .. le pedi a un amigo que trabajaba en un distribuidor de yamaha .. que me consiguiera info de verdad &#8230; de hecho todavia la conservo ..por ahi ..<br /> &#60;hordia&#62; :O<br /> &#60;holborn&#62; yo llegue a trabajar programando sintes en un estudio de grabacion &#8230;. vaya no todos los dias pero me llamaban de vez en cuando<br /> &#60;holborn&#62; haciendo presets &#8230; me refiero .. claro<br /> &#60;hordia&#62; veo que horgand es el resultado de muchos años de experiencia&#8230;<br /> &#60;holborn&#62; si &#8230; a ese nivel si &#8230; pero todo fue gracias a un ejemplo de la web de alsa .. .se llama fmminisynth.c &#8230; o lago asi &#8230; 100 lineas de codigo &#8230; entonces se me ocurrio &#8230; y empece ..</p> <p>&#60;holborn&#62; luego buscando &#8230; encuentras mil ejemplos de codigo &#8230; en HArmony Central &#8230; no esta el codigo pero explican como funcionan los efectos &#8230; en cristiano .. sin mucha matematica &#8230; esta muy bien .. luego ya el implementarlo es cosa de uno &#8230; pero el mismo Paul Nasca dice por ahi (el del zyn) que se basa en esa explicaciones &#8230; y yo tambien claro <img src="http://audiores.uint8.com.ar/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /><br /> &#60;holborn&#62; ya te aseguro que su implementacion es mejor que la mia <img src="http://audiores.uint8.com.ar/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /><br /> &#60;hordia&#62; jeje<br /> &#60;holborn&#62; ahora &#8230;la mia consume un tercio de cpu que la suya <img src="http://audiores.uint8.com.ar/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /><br /> &#60;hordia&#62; entonces hay que ver que parametros se toman para definir cual es mejor <img src="http://audiores.uint8.com.ar/blog/wp-includes/images/smilies/icon_wink.gif" alt=";-)" class="wp-smiley" /><br /> &#60;holborn&#62; pues es un sinte &#8230; lo que suena &#8230; sus efectos suenan mejor &#8230;. pero &#8230; el usa 3 o 4 osciladores por sonido &#8230; yo uso 20 &#8230; con lo cual en algun lado hay que recortar &#8230;<br /> &#8212;</p> <p>El ejemplo que se menciona: <a href="http://www.suse.de/~mana/miniFMsynth.c" class="linkthumb">miniFMsynth.c</a> </p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=186&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_186" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/2008/06/28/la-historia-de-horgand-conversacion-con-holborn/#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=186" width="100" height="15" /></a></div> Sat, 28 Jun 2008 21:12:13 +0000 AudioResearchBlog: Afinando por vibraciones (violín) http://audiores.uint8.com.ar/blog/?p=185 http://audiores.uint8.com.ar/blog/2008/06/28/afinando-por-vibraciones-violin/ <p>Hace un tiempo, cuando le regalé a mi hermana un afinador para violín, para mi sorpresa (por que lo ignoraba) me enteré que hasta los afinadores más baratos incorporan el afinado por vibración (de la madera). Esto es muy conveniente por que elimina ruidos externos de una manera natural, algo imagino casi imprescindible para un violín tradicional (sin micrófonos) que en general se afina en presencia de otros instrumentos de una orquesta. Lo que se hace es colocarlo en alguna parte del instrumento con una especie de prensa que tiene para que quede bien sujeto. La verdad que me gustó.</p> <p>(el afinador era un: matrix gt2)</p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=185&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_185" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/2008/06/28/afinando-por-vibraciones-violin/#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=185" width="100" height="15" /></a></div> Sat, 28 Jun 2008 20:09:36 +0000 AudioResearchBlog: Distortion rack prototype http://audiores.uint8.com.ar/blog/?p=179 http://audiores.uint8.com.ar/blog/2008/01/05/distortion-rack-prototype/ <p>A nice prototype:</p> <p><center><a href="http://audiores.uint8.com.ar/blog/wp-content/uploads/2008/01/distortion-clam-rack.png" alt="prototype" class="linkthumb"><img id="image177" src="http://audiores.uint8.com.ar/blog/wp-content/uploads/2008/01/distortion-clam-rack_mini.png" alt="CLAM distortion rack prototype" /></a></center></p> <p>&nbsp;<br /> &nbsp;</p> <p>And the net behind:</p> <p><center><a href="http://audiores.uint8.com.ar/blog/wp-content/uploads/2008/01/rack-net.png" alt="prototype" class="linkthumb"><img id="image177" src="http://audiores.uint8.com.ar/blog/wp-content/uploads/2008/01/rack-net_mini.png" alt="CLAM distortion rack prototype" /></a></center></p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=179&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_179" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/2008/01/05/distortion-rack-prototype/#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=179" width="100" height="15" /></a></div> Sat, 05 Jan 2008 16:09:50 +0000 AudioResearchBlog: LADSPA versions of my recent simple distortions http://audiores.uint8.com.ar/blog/?p=175 http://audiores.uint8.com.ar/blog/2007/12/17/ladspa-versions-of-my-recent-simple-distortions/ <p>After prototype different kind of simple distortions in NetworkEditor i managed to port all them to <a href="http://www.ladspa.org/" class="linkthumb">ladspa</a> plugins. Despite the fact that the task was less difficult than i had expected at first, prototype with CLAM first worth a lot. Probably, if i had begun coding directly to <a href="http://www.ladspa.org/" class="linkthumb">ladspa</a> source, reach the same status would be taken to me 10 or more times more. I think also was very interesting as &#8220;development process&#8221;, instead of modeling for example with matlab, you could easy modeling (among other things) in CLAM, and then, if you want/need make your final product by your own.</p> <p>More, the other day i learned that is already possible to compile <a href="http://www.ladspa.org/" class="linkthumb">ladspa</a> plugins directly from CLAM networks&#8230; very cool! Though i think this feature is not completely ready yet and i&#8217;m still have to dig in it, i don&#8217;t think that i have lost time porting manually because now i have a better knowledge and understanding about <a href="http://www.ladspa.org/" class="linkthumb">ladspa</a> specification that for sure will be useful to work with this (for me &#8220;new&#8221;) feature, that probably needs some fixes. </p> <p>About the ladspa plugins programming, i just downloaded the sdk from <a href="http://www.ladspa.org/" class="linkthumb">ladspa.org</a>, read some of the ladspa.h file and some basic examples (the ones from sdk) and that was enough to handle the basis. Ah, i had to ask for some <a href="http://www.ladspa.org/" class="linkthumb">ladspa</a> ID&#8217;s for my plugins here: ladspa at muse.demon.co.uk</p> <p>On the other hand i&#8217;ve forwarded my distortion examples to musix distro folks and some of them indeed have tried it and made a couple of <a href="http://jack-rack.sourceforge.net/" class="linkthumb">jack-rack</a> presets and audio demos. More info about this here: <a href="http://www.musix.org.ar/wiki/index.php/DSP-es#Presets" class="linkthumb">DSP-es#Presets</a>, <a href="http://www.musix.org.ar/ogg/disthordian/" class="linkthumb">ogg demos and jack-rack presets</a>, and <a href="http://www.musix.org.ar/wiki/index.php/Distorsion_para_guitarra_disthordian" class="linkthumb">patchs review</a>.</p> <p>Next step (in my TODO list): produce <a href="http://www.ladspa.org/" class="linkthumb">ladspa</a> binaries directly from CLAM networks.</p> <p>I have uploaded these plugins here: <a href="http://audiores.uint8.com.ar/files/code/LADSPA_plugins/disthordian/index.php" class="linkthumb">disthordian ladspa plugins</a>. </p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=175&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_175" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/2007/12/17/ladspa-versions-of-my-recent-simple-distortions/#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=175" width="100" height="15" /></a></div> Mon, 17 Dec 2007 04:41:04 +0000 AudioResearchBlog: New CLAM plugin: ('very' for now) simple guitar distortion http://audiores.uint8.com.ar/blog/?p=172 http://audiores.uint8.com.ar/blog/2007/12/09/new-clam-plugin-very-for-now-simple-guitar-distortion/ <p>A week or more ago, Daniel Vidal Chornet (collaborator of <a href="http://musix.org.ar/" class="linkthumb">Musix</a>) asked me if i can develop guitar distortion effects, because he couldn&#8217;t find something decent that suits his needs, i said &#8220;sadly i have no idea about distortions effects and anyway i have no time right now to do that&#8221;, but then i remembered how useful could be the clam framework and i tried to do a little spike about. Results were better than i had expected at first (is not a super cool distortion, but at least sound like one).</p> <p>Basically i merged and tweaked a couple of simple/base algorithms found in the web for distortion and compression and in less than 30 minutes i had something working and sounds like a guitar distortion (&#8221;clean&#8221; ones seems to sound better easily). I was amazed how fast and easy (develop and test in clam/networkeditor, once you get the basis) was. I think right now is far to be a good distortion, but as learning process and first demo seems very good.</p> <p>Here some sound examples: </p> <p>Original: <a href="http://audiores.uint8.com.ar/files/audios/guitardist/dvlc-guitar.mp3">Download audio file (dvlc-guitar.mp3)</a><br /><br /> (<a href="http://audiores.uint8.com.ar/files/audios/guitardist/dvlc-guitar.ogg" class="linkthumb">dvlc-guitar.ogg</a>)</p> <p>With distortion: <a href="http://audiores.uint8.com.ar/files/audios/guitardist/guitardist-ex1.mp3">Download audio file (guitardist-ex1.mp3)</a><br /><br /> (<a href="http://audiores.uint8.com.ar/files/audios/guitardist/guitardist-ex1.ogg" class="linkthumb">guitardist-ex1.ogg</a>)</p> <p>Test network looks like:<br /> <center><img id="image174" src="http://audiores.uint8.com.ar/blog/wp-content/uploads/2007/12/dist-networkt1.png" alt="Distortion NE network" /></center><br /> &nbsp;</p> <p>The source code is here (as NetworkEditor plugin): <a href="http://audiores.uint8.com.ar/files/code/CLAM_plugins/GuitarDistortion.tar.gz" class="linkthumb">GuitarDistortion.tar.gz</a></p> <p>Some optional tweaks could include add a three band filter but i&#8217;m still not sure if it&#8217;s better to put it at first or at the end.</p> <p>Special thanks for testing and audio samples to Daniel Vidal Chornet. I should take from my closet my <a href="http://en.wikipedia.org/wiki/Fender_Stratocaster" class="linkthumb">fender stratocaster</a> and do my own samples <img src="http://audiores.uint8.com.ar/blog/wp-includes/images/smilies/icon_biggrin.gif" alt=":-D" class="wp-smiley" /> . OTOH, we already arrange to do a remote gig with this.</p> <p>Another useful NetworkEditor processings plugins i had made during this &#8220;work&#8221;:</p> <ul> <li>AutomaticGainControl: Adaptative automatic gain control. Given an output reference and step response adjusts the output volume to keep it constant (<a href="http://audiores.uint8.com.ar/files/code/CLAM_plugins/AutomaticGainControl.tar.gz" class="linkthumb">AutomaticGainControl.tar.gz</a>)</li> <li>AudioSwitch: Switchs between a configurable amount of inputs (like a multiplexer) (<a href="http://audiores.uint8.com.ar/files/code/CLAM_plugins/AudioSwitch.tar.gz" class="linkthumb">AudioSwitch.tar.gz</a>)</li> </ul> <p>&nbsp;<br /> <strong>Related:</strong> <a href="http://audiores.uint8.com.ar/blog/?p=175" class="linkthumb">LADSPA versions of my recent simple distortions</a><br /> <strong>Update:</strong> <a href="http://audiores.uint8.com.ar/blog/?p=179" class="linkthumb">Distortion rack prototype</a> </p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=172&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_172" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/2007/12/09/new-clam-plugin-very-for-now-simple-guitar-distortion/#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=172" width="100" height="15" /></a></div> Sun, 09 Dec 2007 18:47:55 +0000 Tweaking kate to work more comfortably with clam source http://www.h.ordia.com.ar/blog/index.php?entry=entry071205-085058 http://www.h.ordia.com.ar/blog/index.php?entry=entry071205-085058 Normally I use <a href="http://www.kate-editor.org/" target="_blank">kate editor</a> to develop in any language, I tried many ones before like <a href="http://www.vim.org/" target="_blank">vim</a>, <a href="http://www.jedit.org/" target="_blank">jeditor</a> or indeed some IDE&#039;s like <a href="http://www.kdevelop.org/" target="_blank">kdevelop</a> or <a href="http://www.eclipse.org/" target="_blank">eclipse</a> but i&#039;m still choosing <a href="http://www.kate-editor.org/" target="_blank">kate</a> for all (altough <a href="http://www.vim.org/" target="_blank">vim</a> is always my first option). It&#039;s simple, has syntax highlight for nearly all languages, window split, embedded console, easy shortcuts for indent, comment and so and lot of more cool features, some plugins, etc.<br /><br />Some months ago I started to develop under <a href="http://clam.iua.upf.edu/" target="_blank">CLAM framework</a> (because <a href="http://h.ordia.com.ar/blog/GSoC2007.php" target="_blank">this year gsoc</a>) which is C++ code, but I realized the problem that the source has as convention .hxx and .cxx files instead of the more classic .h and .cpp, then the kate editor fails to <b>switch between header and definition</b> with the shortcut (F12) I lacked very much this kind of feature for weeks, there was no configuration available, nor nothing in google searchs. But yesterday I asked at #kate freenode channel and then in the kwrite-devel mailing list (kate, katePart, kwrite related) and they told me that this kind of feature was hardcoded in one plugin, so I had the idea to download the sources and recompile it with my own fix.<br /><br />I downloaded kdeaddons-3.5.6 source, the same version than my current kde (&#039;sudo apt-get build-dep kate-plugins&#039; and &#039;sudo apt-get source kate-plugins&#039; could help if you&#039;re in a debian based distro) and configure it well, but when I tried to compile the openheader plugin I was getting errors, then I had to run qt3 moc bin manually, because define &#039;export QTDIR=/usr/share/qt3&#039; was not enough... &#039;make&#039; command was still calling &#039;/usr/share/qt4/bin/moc&#039; not matter what you do.<br /><br /><br /><br />These are the complete steps i had performed to have it working:<br /><pre class="bash">/usr/share/qt3/bin/moc ./plugin_kateopenheader.h -o plugin_kateopenheader.moc<br />make<br />sudo libtool --<span>mode=</span>install install -c kateopenheaderplugin.la /usr/lib/kde3/kateopenheaderplugin.la<br />kbuildsycoca</pre><br />And first, of course the tweak in the sources, just an add in plugin_kateopenheader.cxx:91<br /><pre class="c">QStringList headers<span>&#40;</span> QStringList<span>&#40;</span><span>&#41;</span> &lt;&lt; <span>"h"</span> &lt;&lt; <span>"H"</span> &lt;&lt; <span>"hh"</span> &lt;&lt; <span>"hpp"</span> &lt;&lt; <span>"hxx"</span> <span>&#41;</span>;</pre>instead of<br /><pre class="c">QStringList headers<span>&#40;</span> QStringList<span>&#40;</span><span>&#41;</span> &lt;&lt; <span>"h"</span> &lt;&lt; <span>"H"</span> &lt;&lt; <span>"hh"</span> &lt;&lt; <span>"hpp"</span> <span>&#41;</span>;</pre><br />that was all, very easy, don&#039;t? now i&#039;m coding with <a href="http://clam.iua.upf.edu/" target="_blank">clam</a> a lot more comfortable :-D<br /><br />i hope they include it in the official release (they already told me that they will)<br /><br />for this kind of things is that i like so much the open-source! was so simple and now so useful!<br /><br /><div class="techtags">Tech Tags: <a href="http://technorati.com/tag/c++" rel="tag"><img src="http://static.technorati.com/static/img/pub/icon-utag-16x13.png?tag=c++" alt=" " />c++</a> <a href="http://technorati.com/tag/programming" rel="tag"><img src="http://static.technorati.com/static/img/pub/icon-utag-16x13.png?tag=programming" alt=" " />programming</a></div> Wed, 05 Dec 2007 11:50:58 +0000 HP48 emulada en linux http://www.h.ordia.com.ar/blog/index.php?entry=entry071113-001136 http://www.h.ordia.com.ar/blog/index.php?entry=entry071113-001136 La <a href="http://es.wikipedia.org/wiki/HP48" target="_blank">HP48</a>, aunque ya vieja y discontinuada, es la calculadora[1] más cómoda y práctica que tuve oportunidad de usar hasta el momento. De su uso, me quedó la preferencia por la notación <a href="http://es.wikipedia.org/wiki/Notaci%C3%B3n_polaca_inversa" target="_blank">RPN</a>. <br /><br />Es por ello que en consola mi elección en calculadoras desde hace un tiempo es <a href="http://www.eecs.umich.edu/~pelzlpj/orpie/" target="_blank">orpie</a>. En ámbientes gráficos, todavía no había encontrado algo que se ganara mi preferencia.<br /><br />Debido a que últimamente estoy usando la calculadora más seguido de nuevo, se me ocurrió buscar un emulador de la misma para gnu/linux[2]. Al parecer, no hay nada sobre esto en los repositorios oficiales de <a href="http://es.wikipedia.org/wiki/Ubuntu" target="_blank">ubuntu</a>, pero por suerte encontré esta guía sencilla y con todo lo necesario para tenerla funcionando en minutos: <a href="http://en.tldp.org/linuxfocus/common/src/article319/x48.html" target="_blank">x48</a><br /><br />Asi que ya tengo algo lindo y cómodo (y nostálgico?) para usar en ámbientes gráficos... :-D<br /><br />[1] Dejando afuera las pc&#039;s y software de cálculo.<br />[2] Hace unos años la usaba bastante emulada en pc, pero eran tiempos de otro sistema operativo. Entre otras ventajas, uno dispone de mucha más memoria para instalar programas. Tue, 13 Nov 2007 03:11:36 +0000 AudioResearchBlog: TAPESTREA: Modelando la escena sonora a partir de ejemplos o muestras http://audiores.uint8.com.ar/blog/?p=165 http://audiores.uint8.com.ar/blog/2007/11/01/tapestrea-modelando-la-escena-sonora-a-partir-de-ejemplos-o-muestras/ <p>Hoy vi el video demostración de <a href="http://taps.cs.princeton.edu/" class="linkthumb">TAPESTREA</a>: <strong>T</strong>echniques <strong>A</strong>nd <strong>P</strong>aradigms for <strong>E</strong>xpressive <strong>S</strong>ynthesis, <strong>T</strong>ransformation, and <strong>R</strong>endering of <strong>E</strong>nvironmental <strong>A</strong>udio (también conocido como <strong>taps</strong>). Intenta ser un entorno para el diseño de sonido, pero desde un enfoque totalmente nuevo (lo mejor es ver el video para entender mejor de que se trata).</p> <p>Me llamó la antención (además de la división del sonido entre sus componentes <a href="http://en.wikipedia.org/wiki/Sinusoidal" class="linkthumb">sinusoidales</a>, <a href="http://en.wikipedia.org/wiki/Transient" class="linkthumb">transitorios</a> y <a href="http://en.wikipedia.org/wiki/Stochastic" class="linkthumb">residuo</a>), la interfaz gráfica intuitiva y sencilla y la manipulacíón de sonidos en el <a href="http://en.wikipedia.org/wiki/Spectrogram" class="linkthumb">espectrograma</a>.</p> <p> <br /><font size="1"><a href="http://www.metacafe.com/watch/450868/tapestrea_sound_scene_modeling_by_example/" class="linkthumb">TAPESTREA: Sound Scene Modeling By Example</a> - <a href="http://www.metacafe.com/" class="linkthumb">For more funny movies, click here</a></font></p> <p>&nbsp;<br /> El video completo esta disponible aca: <a href="http://soundlab.cs.princeton.edu/listen/taps/tapestrea.mov" class="linkthumb">http://soundlab.cs.princeton.edu/listen/taps/tapestrea.mov</a><br /> &nbsp;</p> <p>Según su web, la idea es ser un framework unificado para analizar de forma interactiva sonidos complejos, transformarlos y sintetizarlos:</p> <ul> <li>Identificar puntos de interés en el sonido y extraerlos para crear &#8220;templates&#8221; (una muestra/un sample) reusables</li> <li>Transformar componentes de sonido de forma independiente a su entorno y otros eventos sonoros</li> <li>Resintetizar continuamente las texturas de fondo de una forma perceptualmente convincente</li> <li>Posicionamiento de eventos &#8220;templatizados&#8221; sobre la escena de fondo por medio de una novedosa interfaz de usuario o scripts escritos en <a href="http://chuck.cs.princeton.edu/" class="linkthumb">Chuck</a> (un lenguaje de programación orientado al audio)</li> <li>Recuperación de componentes de sonidos basandose en la similaridad con otros.</li> </ul> <p><a href="http://taps.cs.princeton.edu/" class="linkthumb">TAPESTREA</a> otorga una nueva forma de transformar dinámicamente una escena de sonido, permite generar puestas de cualquier duración, facilita la composición y el diseño de sonido combinando elementos de diferentes grabaciones de forma muy sencilla y ofreciendo miles de variantes para su manipulación (solo pensar en las posiblidades que otorga el solo hecho de poder manejar por separado sinusoides, transitorio y residuo).</p> <p>Sin duda, una herramienta de trabajo interesante tanto para &#8220;diseñadores de sonido&#8221; como invesitigadores del audio, compositores y cualquier persona interesada en experimentar con el sonido.</p> <p>Por si todo esto fuera poco, es <a href="http://es.wikipedia.org/wiki/Software_Libre" class="linkthumb">Software Libre</a> y <a href="http://es.wikipedia.org/wiki/Multiplataforma" class="linkthumb">multiplataforma</a>. El código fuente y los binarios se consiguen <a href="http://taps.cs.princeton.edu/release/" class="linkthumb">aquí</a>.</p> <p>Más info:</p> <ul> <li><a href="http://taps.cs.princeton.edu/" class="linkthumb">Web oficial</a></li> <li><a href="http://en.wikipedia.org/wiki/TAPESTREA" class="linkthumb">Artículo en Wikipedia</a></li> <li><a href="http://www.linuxjournal.com/node/1000239" class="linkthumb">Artículo en linuxjournal</a></li> </ul> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=165&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_165" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/2007/11/01/tapestrea-modelando-la-escena-sonora-a-partir-de-ejemplos-o-muestras/#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=165" width="100" height="15" /></a></div> Fri, 02 Nov 2007 00:56:15 +0000 AudioResearchBlog: My presentation at the "VI Jornadas de Acústica, Electroacústica y áreas vinculadas (CADAE)" http://audiores.uint8.com.ar/blog/?p=164 http://audiores.uint8.com.ar/blog/2007/10/27/my-presentation-at-the-vi-jornadas-de-acustica-electroacustica-y-areas-vinculadas-cadae/ <p>Yesterday I had the opportunity to give a talk about my recent <a href="http://h.ordia.com.ar/blog/GSoC2007.php" class="linkthumb">work in the google summer of code </a>at the <a href="http://cadae.org.ar/jornadas_2007_formulario.htm" class="linkthumb">VI Jornadas de Acústica, Electroacústica y áreas vinculadas</a> (<a href="http://cadae.org.ar" class="linkthumb">CADAE</a>). The given time was short, so was a little hard to explain all in only 20 minutes, but seems that all went well (at least seemed like the people). Here my presentation (in Spanish):</p> <p>&nbsp;</p> <h2><strong>Transformaciones espectrales en tiempo real para CLAM</strong></h2> <div id="__ss_147509"><br /> <br /> <div><a href="http://www.slideshare.net/?src=embed" class="linkthumb"><img src="http://s3.amazonaws.com/slideshare/logo_embd.png" alt="SlideShare" /></a> | <a href="http://www.slideshare.net/hordiales/transformaciones-espectrales-en-tiempo-real-para-c-l-a-m-hernn-ordiales-147509" title="View 'Transformaciones espectrales en tiempo real para CLAM' on SlideShare" class="linkthumb">View</a> | <a href="http://www.slideshare.net/upload" class="linkthumb">Upload your own</a></div> </div> <p>&nbsp;</p> <p><strong>Download:</strong> <a href="http://audiores.uint8.com.ar/files/doc/slides/Transformaciones%20espectrales%20en%20tiempo%20real%20para%20CLAM%20-%20Hern%e1n%20Ordiales.pdf" class="linkthumb">Transformaciones espectrales en tiempo real para CLAM.pdf</a> </p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=164&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_164" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/2007/10/27/my-presentation-at-the-vi-jornadas-de-acustica-electroacustica-y-areas-vinculadas-cadae/#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=164" width="100" height="15" /></a></div> Sat, 27 Oct 2007 20:47:00 +0000 AudioResearchBlog: Presentación en las VI Jornadas de Acústica, Electroacústica y áreas vinculadas (CADAE) http://audiores.uint8.com.ar/blog/?p=163 http://audiores.uint8.com.ar/blog/2007/10/27/presentacion-en-las-vi-jornadas-de-acustica-electroacustica-y-areas-vinculadas-cadae/ <p>Ayer tuve la oportunidad de presentar mi <a href="http://h.ordia.com.ar/blog/GSoC2007.php" class="linkthumb">trabajo realizado para el google summer of code</a> en el marco de las <a href="http://cadae.org.ar/jornadas_2007_formulario.htm" class="linkthumb">VI Jornadas de Acústica, Electroacústica y áreas vinculadas</a> (<a href="http://cadae.org.ar" class="linkthumb">CADAE</a>), les dejó la presentación de la misma:</p> <p>&nbsp;</p> <h2><strong>Transformaciones espectrales en tiempo real para CLAM</strong></h2> <div id="__ss_147509"><br /> <br /> <div><a href="http://www.slideshare.net/?src=embed" class="linkthumb"><img src="http://s3.amazonaws.com/slideshare/logo_embd.png" alt="SlideShare" /></a> | <a href="http://www.slideshare.net/hordiales/transformaciones-espectrales-en-tiempo-real-para-c-l-a-m-hernn-ordiales-147509" title="View 'Transformaciones espectrales en tiempo real para CLAM' on SlideShare" class="linkthumb">View</a> | <a href="http://www.slideshare.net/upload" class="linkthumb">Upload your own</a></div> </div> <p>&nbsp;</p> <p><strong>Download:</strong> <a href="http://audiores.uint8.com.ar/files/doc/slides/Transformaciones%20espectrales%20en%20tiempo%20real%20para%20CLAM%20-%20Hern%e1n%20Ordiales.pdf" class="linkthumb">Transformaciones espectrales en tiempo real para CLAM.pdf</a> </p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=163&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_163" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/2007/10/27/presentacion-en-las-vi-jornadas-de-acustica-electroacustica-y-areas-vinculadas-cadae/#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=163" width="100" height="15" /></a></div> Sat, 27 Oct 2007 20:26:18 +0000 AudioResearchBlog: Conferencia ‘Tackling the Acoustic Front-end for Distant-Talking Automatic Speech' en BsAs http://audiores.uint8.com.ar/blog/?p=149 http://audiores.uint8.com.ar/blog/?p=149 <p>Me llega vía mail/boletín de <a href="http://www.ieee.org.ar/" class="linkthumb">IEEE Argentina</a> que el próximo lunes 3 de septiembre se va a dar la conferencia &#8216;<em>Tackling the Acoustic Front-end for Distant-Talking Automatic Speech</em>&#8216; dictada por el <a href="http://www.lnt.de/LMS/staff/index.php?lang=eng&#038;function=1&#038;person=3" class="linkthumb">Prof. Dr.-Ing. Walter Kellerman</a>, conferencista distinguido de la <a href="http://www.ieee.org/organizations/society/sp/" class="linkthumb">IEEE Signal Processing Society</a>. Esto será en la Sede de IEEE / CICOMRA, con <strong>entrada libre y gratuita</strong>.</p> <p>&nbsp;</p> <h3>Temario</h3> <blockquote><p>With the ever-growing interest in &#8216;natural&#8217; hands-free acoustic human/machine interfaces, the need for according distant-talking automatic speech recognition (ASR) systems increases. Considering interactive TV as a challenging exemplary application scenario, we investigate the structural problems presented by noisy and reverberant multi-source environments with unpredictable interference and acoustic echoes of loudspeaker signals, and discuss current acoustic signal processing techniques to enhance the input to the actual ASR system. Special attention is paid to reverberation, which affects speech recognizers much more than human listeners, and a recently published method incorporating a reverberation model on the feature level of ASR is discussed.</p></blockquote> <p>&nbsp;</p> <h3>Sobre el orador (para más datos ver <a href="http://www.lnt.de/LMS/staff/index.php?lang=eng&#038;function=1&#038;person=3" class="linkthumb">este link</a>)</h3> <blockquote><p>Walter Kellermann is Professor for communications at the Chair of Multimedia Communications and Signal Processing of the University of<br /> Erlangen-Nuremberg, Germany. His current research interests include speech signal processing, array signal processing, adaptive filtering, and its applications to acoustic human/machine interfaces. He received the Dipl.-Ing. (univ.) degree in Electrical Engineering from the University of Erlangen-Nuremberg in 1983, and the Dr.-Ing. degree (&#8217;with distinction&#8217;) from the Technical University Darmstadt, Germany, in 1988. From 1989 to 1990, he was a Postdoctoral Member of Technical Staff at <a href="http://www.research.att.com/" class="linkthumb">AT&#038;T Bell Laboratories</a>, Murray Hill, NJ. In 1990, he joined Philips Kommunikations Industrie, Nuremberg, Germany. From 1993 to 1999 he was a professor at the Fachhochschule Regensburg before he joined the University Erlangen-Nuremberg as a professor and head of the audio research laboratory in 1999 (for more see <a href="http://www.LNT.de/audio" class="linkthumb">http://www.LNT.de/audio</a>). In 1999 he co-founded the consulting firm <a href="http://www.dspsolutions.de/" class="linkthumb">DSP Solutions</a>. Dr. Kellermann authored or co-authored eight book chapters and more than 100 refereed papers in journals and conference proceedings. He served as a guest editor to various journals, as an associate editor and guest editor to IEEE Transactions on Speech and Audio Processing from 2000 to 2004, and presently serves as associate editor to the EURASIP Journals on Signal Processing and on Advances in Signal Processing. He was the general chair of the 5th International Workshop on Microphone Arrays in 2003 and the IEEE Workshop on Applications of Signal Processing to Audio and Acoustics in 2005. For 2007 and 2008 he is a Distinguished Lecturer of the <a href="http://www.ieee.org/organizations/society/sp/" class="linkthumb">IEEE Signal Processing Society</a>.</p></blockquote> <p>&nbsp;</p> <h3>Datos de la conferencia</h3> <p><strong>Fecha y hora:</strong> Lunes 3 de setiembre a las 19:00<br /> <strong>Lugar:</strong> Auditorio IEEE/CICOMRA, Av. Córdoba 744 Piso 1 B, Buenos Aires<br /> <strong>Inscripción:</strong> No es arancelada, pero se solicita inscripción previa vía web completando el formulario disponible <a href="http://www.ieee.org.ar/sistemainscripciones/InscripcionSolicitud.asp?idevento=22" class="linkthumb">aca</a>. Alternativamente por e-mail a sec.argentina@ieee.org citando &#8216;<em>Conferencia SPS-01</em>&#8216; o por teléfono a IEEE / CICOMRA (011) 4325 8839.</p> <p>No hay charlas ni mucho movimiento sobre este tipo de cosas por aca, asi que voy a tratar de ir&#8230; y después, de hacerme tiempo para un review de la misma. </p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=149&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_149" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/?p=149#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=149" width="100" height="15" /></a></div> Sat, 01 Sep 2007 03:25:50 +0000 AudioResearchBlog: Audio Player Wordpress plugin http://audiores.uint8.com.ar/blog/?p=145 http://audiores.uint8.com.ar/blog/?p=145 <p>De casualidad (buscando otra cosa) me topé con esto: <a href="http://www.1pixelout.net/code/audio-player-wordpress-plugin" class="linkthumb">Audio Player Wordpress plugin</a>. Parece bastante bien logrado y lo instalé en este blog&#8230; (además en este último tiempo venia averiguando sobre estos temas, ver: &#8220;<a href="http://audiores.uint8.com.ar/blog/?p=131" class="linkthumb">Streaming audio from your website (mp3 and ogg!)</a>&#8221; y &#8220;<a href="http://audiores.uint8.com.ar/blog/?p=138" class="linkthumb">Many files to stream with cortado in the same page</a>&#8220;). Al estar basado en flash, solo soporta mp3, pero es bastante configurable y tiene cosas copadas como la posibilidad de agregar audios por defecto al inicio o al final de cada track (útil por ejemplo para anuncios comerciales en podcasts o instrucciones de uso), distintas alternativas de mostrado de los audios en el feed, configuración de colores y otras cosas más.</p> <p>También se puede usar en sitios no basados en wordpress (<a href="http://www.macloo.com/examples/audio_player/" class="linkthumb">ver tutorial</a>) y por ejemplo es el que usa digg.com para los podcasts (<a href="http://www.1pixelout.net/2006/12/19/diggcom-use-my-audio-player/" class="linkthumb">ver</a>).</p> <p>Ejemplo:</p> <p><a href="http://audiores.uint8.com.ar/files/audios/smsharmonizer/elvis-harmonized.mp3">Download audio file (elvis-harmonized.mp3)</a><br /></p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=145&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_145" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/?p=145#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=145" width="100" height="15" /></a></div> Mon, 27 Aug 2007 00:24:46 +0000 AudioResearchBlog: Fundamental (in Hz) to a MIDI note http://audiores.uint8.com.ar/blog/?p=144 http://audiores.uint8.com.ar/blog/?p=144 <p>Working to have <em>audio-to-midi</em> in NetworkEditor (<a href="http://clam.iua.upf.edu/" class="linkthumb">CLAM</a>) I needed to convert a fundamental frequency value to a MIDI note one.</p> <p>I found some source code related with this in Voice2MIDI app, but was not explained at all, so looking for the reason of that formula I arrived at this:</p> <p>Knowing about equal-tempered scale (<a href="http://audiores.uint8.com.ar/blog/?p=53" class="linkthumb">check this</a>) and <img src="http://l.wordpress.com/latex.php?latex=2%5E%7B%5Cfrac%7Bn%7D%7B12%7D%7D&amp;bg=FFFFFF&amp;fg=000000" alt="2^{\frac{n}{12}}" /> relation between frequencies plus the fact that C4 or &#8220;middle c&#8221; has a MIDI value of 60, it&#8217;s easy to conclude that then A4 (which its frequency value is 440Hz, a standard for tunning and is 9 semi-tones more) has a MIDI value of 69.</p> <p>&nbsp;</p> <p>Then, starting with:<br /> <img src="http://l.wordpress.com/latex.php?latex=fundfrec+%3D+440Hz+%2A+2%5E%7B%28%5Cfrac%7B1%7D%7B12%7D%29%5En%7D+&amp;bg=FFFFFF&amp;fg=000000" alt="fundfrec = 440Hz * 2^{(\frac{1}{12})^n} " /></p> <p>&nbsp;</p> <p>It&#8217;s easy to arrive at this:<br /> <img src="http://l.wordpress.com/latex.php?latex=fund_%7Bmidinote%7D+%3D+69%2Blog_%7B2%5E%7B%28%5Cfrac%7B1%7D%7B12%7D%29%7D%7D%28%5Cfrac%7Bfundfrec%7D%7B440Hz%7D%29+&amp;bg=FFFFFF&amp;fg=000000" alt="fund_{midinote} = 69+log_{2^{(\frac{1}{12})}}(\frac{fundfrec}{440Hz}) " /></p> <p>&nbsp;</p> <p>and then, also taking in account this mathematical relation::<br /> <img src="http://l.wordpress.com/latex.php?latex=log_%7B2%5E%7B%5Cfrac%7B1%7D%7B12%7D%7D%7D%28a%29+%3D+log_%7Be%7D%28a%29%2A17.31234+&amp;bg=FFFFFF&amp;fg=000000" alt="log_{2^{\frac{1}{12}}}(a) = log_{e}(a)*17.31234 " /></p> <p>&nbsp;</p> <p>the final formula looks like:<br /> <img src="http://l.wordpress.com/latex.php?latex=fund_%7Bmidinote%7D+%3D+69%2Blog_%7Be%7D%28%5Cfrac%7Bfundfrec%7D%7B440Hz%7D%29%2A17.31234+&amp;bg=FFFFFF&amp;fg=000000" alt="fund_{midinote} = 69+log_{e}(\frac{fundfrec}{440Hz})*17.31234 " /></p> <p>&nbsp;</p> <p>and a final c++ code like:<br /> <span><pre class="c">fund_midinote = round<span>&#40;</span> <span>69</span>. + log<span>&#40;</span>fundfrec/<span>440</span>.<span>&#41;</span>*<span>17.31234</span> <span>&#41;</span>;</pre></span></p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=144&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_144" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/?p=144#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=144" width="100" height="15" /></a></div> Sun, 26 Aug 2007 23:54:29 +0000 AudioResearchBlog: SMS interference mystery solved http://audiores.uint8.com.ar/blog/?p=141 http://audiores.uint8.com.ar/blog/?p=141 <p>Andrés Kasulin, a friend of mine from the <a href="http://www.fi.uba.ar/" class="linkthumb">University</a> gave me some light about the issue of SMS interference (check &#8220;<a href="http://audiores.uint8.com.ar/blog/?p=121" class="linkthumb">Catching (phone) SMS pulse train with CLAM...</a>&#8220;)</p> <p>He says in a comment from <a href="http://audiores.uint8.com.ar/blog/?p=121" class="linkthumb">that post</a>:<br /> <blockquote>&#8220;I've found nice data in wikipedia[<a href="http://en.wikipedia.org/wiki/GSM#Radio_interface" class="linkthumb">1</a>].</blockquote></p> <p>It seems to be radiofrequency interference produced by the the phone, and filtered by the mic-cable-probes-osciloscope system. I think there is only a square pulse because the carrier frequency is much higher than filter cutoff frequency (maybe near 10^5 times).&#8221;</p> <p>[<a href="http://en.wikipedia.org/wiki/GSM#Radio_interface" class="linkthumb">1</a>] <a href="http://en.wikipedia.org/wiki/GSM#Radio_interface" class="linkthumb">http://en.wikipedia.org/wiki/GSM#Radio_interface</a></p> <p>&nbsp;<br /> &nbsp;</p> <p>I&#8217;d add from <a href="http://en.wikipedia.org/wiki/GSM#Radio_interface" class="linkthumb">that article</a>:</p> <blockquote><p>&#8220;A nearby <a href="http://en.wikipedia.org/wiki/GSM" class="linkthumb">GSM</a> handset is usually the source of the &#8220;dit dit dit, dit dit dit, dit dit dit&#8221; signal that can be heard from time to time on home stereo systems, televisions, computers, and personal music devices. When these audio devices are in the <a href="http://en.wikipedia.org/wiki/Near_and_far_field" class="linkthumb">near field</a> of the GSM handset, the radio signal is strong enough that the solid state amplifiers in the audio chain function as a <a href="http://en.wikipedia.org/wiki/Detector_%28radio%29" class="linkthumb">detector</a>. The clicking noise itself represents the power bursts that carry the <a href="http://en.wikipedia.org/wiki/Time_division_multiple_access" class="linkthumb">TDMA</a> signal. These signals have been known to interfere with other electronic devices, such as car stereos and portable audio players. This is a form of <a href="http://en.wikipedia.org/wiki/Radio_Frequency_Interference" class="linkthumb">RFI</a>, and could be mitigated or eliminated by use of additional shielding and/or bypass capacitors in these audio devices. However, the increased cost of doing so is difficult for a designer to justify.&#8221;</p></blockquote> <p>Very thanks Andrés!</p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=141&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_141" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/?p=141#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=141" width="100" height="15" /></a></div> Wed, 08 Aug 2007 03:15:34 +0000 AudioResearchBlog: Trabajar con wavs de 8 bits en python http://audiores.uint8.com.ar/blog/?p=135 http://audiores.uint8.com.ar/blog/?p=135 <p>Hace un tiempo escribí un par de funciones para trabajar con wavs en python como si fuesen vectores, es decir, al &#8220;estilo&#8221; <a href="http://es.wikipedia.org/wiki/Matlab" class="linkthumb">matlab</a> (para más detalles ver este post &#8220;<a href="http://audiores.uint8.com.ar/blog/?p=83" class="linkthumb">Funciones para trabajar con wav&#8217;s vectorialmente en python</a>&#8220;).</p> <p>Casualmente en la misma semana 2 personas, Cesar Perez (Colombia) y Elizabeth Coixet (España), me escribieron a este blog comentandome que estaban usando mis funciones con éxito pero tenian problemas al leer wav&#8217;s de 8 bits. Les recomendé que lo charlaramos en el grupo <a href="http://tech.groups.yahoo.com/group/buenasenal/" class="linkthumb">Buena Señal</a> ya que entre todos (y posiblemente alguna contribución de alguno más de los del <a href="http://tech.groups.yahoo.com/group/buenasenal/" class="linkthumb">grupo</a>) seguramente iba a ser más fácil y todos podriamos aprender algo de ello (ver estos 2 threads: <a href="http://tech.groups.yahoo.com/group/buenasenal/message/343" class="linkthumb">1</a>, <a href="http://tech.groups.yahoo.com/group/buenasenal/message/344" class="linkthumb">2</a>).</p> <p>Y asi fue <img src="http://audiores.uint8.com.ar/blog/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley" /> </p> <p>Luego de que Cesar planteara el problema y yo hiciese mis apreciaciones sobre el asunto, Elizabeth encontró que el wav de 8 bits era unsigned y no signed (como el de 16 bits) con lo que se termino de resolver el misterio de porque la solución que manejabamos leia en forma extraña&#8230;</p> <p>Bueno la función queda asi:<br /> <span><pre class="python"><span># Example: [ y, Fs, bits ] = wavread8bits( 'filename' )</span> <span>def</span> wavread8bits<span>&#40;</span> name <span>&#41;</span>: <span>file</span> = <span>wave</span>.<span>open</span><span>&#40;</span> name, <span>'r'</span> <span>&#41;</span> <span>&#91;</span>Channels,Bytes,Fs,Frames,Compress,CompressName<span>&#93;</span> = <span>file</span>.<span>getparams</span><span>&#40;</span><span>&#41;</span> <span># (nchannels, sampwidth in bytes, sampling frequency, nframes, comptype, compname)</span> Bits = Bytes*<span>8</span> <span># 8 bits per sample</span> Data = <span>file</span>.<span>readframes</span><span>&#40;</span> Frames <span>&#41;</span> Data = <span>&#40;</span>fromstring<span>&#40;</span> Data, UInt8 <span>&#41;</span> / <span>128.0</span> <span>&#41;</span> - <span>1.0</span> <span># -1..1 values</span> <span>print</span> <span>&quot;Fs: &quot;</span>,Fs,<span>&quot;<span>\n</span>Bits: &quot;</span>,Bits,<span>&quot;<span>\n</span>Channels: &quot;</span>,Channels <span>file</span>.<span>close</span><span>&#40;</span><span>&#41;</span> <span>return</span> Data, Fs, Bits</pre></span></p> <p>&nbsp;<br /> De paso también escribí la función para escribir un wav de 8 bits.<br /> <span><pre class="python"><span># Example: wavwrite8bits( y, Fs, filename )</span> <span>def</span> wavwrite8bits<span>&#40;</span> data_array, Fs, name <span>&#41;</span>: <span>file</span> = <span>wave</span>.<span>open</span><span>&#40;</span> name, <span>'w'</span> <span>&#41;</span> <span>file</span>.<span>setframerate</span><span>&#40;</span> Fs <span>&#41;</span> <span># sets sampling frequency</span> <span>file</span>.<span>setnchannels</span><span>&#40;</span> <span>1</span> <span>&#41;</span> <span># sets number of channels</span> <span>file</span>.<span>setsampwidth</span><span>&#40;</span> <span>1</span> <span>&#41;</span> <span># number of bytes, 8 bits per sample</span> &nbsp; clipped = <span>False</span> block_size = <span>1024</span>*<span>10</span> <span># write block size: 10k</span> a_max = <span>255</span> <span># max amp</span> a_min = <span>0</span> <span># min amp</span> n = <span>0</span> len_data_array = <span>len</span><span>&#40;</span> data_array <span>&#41;</span> <span># 1 byte (UInt8) data</span> <span>while</span> n &lt; len_data_array : frame = <span>''</span> <span># string frame of 'block_size'</span> <span>for</span> i <span>in</span> <span>range</span><span>&#40;</span> block_size <span>&#41;</span> : <span>if</span> n &lt; len_data_array : newbyte = <span>int</span><span>&#40;</span> <span>&#40;</span>data_array<span>&#91;</span>n<span>&#93;</span><span>+1.0</span><span>&#41;</span> * <span>128</span> <span>&#41;</span> <span># ~ 255/2</span> <span>if</span> newbyte &gt; a_max <span>or</span> newbyte &lt; a_min : clipped = <span>True</span> newbyte = <span>min</span><span>&#40;</span> <span>max</span><span>&#40;</span>newbyte,a_min<span>&#41;</span>, a_max <span>&#41;</span> <span># normalization, 0..255</span> <span>#newbyte.clip( min=a_min, max=a_max ) # normalization, 0..255</span> frame += <span>chr</span><span>&#40;</span> newbyte &amp; 0xFF <span>&#41;</span> <span># takes the byte, converts it to char and adds it to the frame</span> n += <span>1</span> <span>file</span>.<span>writeframes</span><span>&#40;</span> frame <span>&#41;</span> <span>if</span> clipped == <span>True</span> : <span>print</span> <span>&quot;Warning: Some values were clipped&quot;</span> <span>print</span> <span>&quot;Final length:&quot;</span>, len_data_array/<span>512</span>,<span>&quot;kb&quot;</span> <span># n*2/1024 (bytes size/1024) = n/512</span> <span>file</span>.<span>close</span><span>&#40;</span><span>&#41;</span></pre></span></p> <p>El archivo con todas estas funciones de lectura/escritura (8 y 16 bits) es este: <a href="http://audiores.uint8.com.ar/files/code/wav_array.py" class="linkthumb">wav_array.py</a></p> <p>Gracias a todos! </p> <p class="akst_link"><a href="http://audiores.uint8.com.ar/blog/?p=135&amp;akst_action=share-this" title="E-mail this, post to del.icio.us, etc." id="akst_link_135" class="akst_share_link" rel="nofollow">Share This/Compártelo</a> </p><div class="tantan-getcomments"><a href="http://audiores.uint8.com.ar/blog/?p=135#comments"><img src="http://audiores.uint8.com.ar/blog/wp-content/plugins/tantan/get-comments.php?p=135" width="100" height="15" /></a></div> Mon, 06 Aug 2007 04:20:25 +0000