Arduino, Prosessing y Theremin

Hola a todos!

Tengo el siguiente problemilla: estoy intentando construit un Theremin con Arduino. Conectándole un altavoz y un sensor de ultrasonidos, va perfecto.
El fallo viene cuando quiero conectarlo con Processing para que se le asigne un sonido determinado a cada posición.
He puesto los archivos de sonido en la carpeta del proyecto y he puesto el puerto COM correcto.

La consola muestra esto:

The error the console shows:

=== Minim Error ===
=== Likely buffer underrun in AudioOutput.

=== Minim Error ===
=== Likely buffer underrun in AudioOutput.

=== Minim Error ===
=== Likely buffer underrun in AudioOutput.

=== Minim Error ===
=== Likely buffer underrun in AudioOutput.

=== Minim Error ===
=== Likely buffer underrun in AudioOutput.

=== Minim Error ===
=== Likely buffer underrun in AudioOutput.

=== Minim Error ===
=== Likely buffer underrun in AudioOutput.

=== Minim Error ===
=== Likely buffer underrun in AudioOutput.

=== Minim Error ===
=== Likely buffer underrun in AudioOutput.

=== Minim Error ===
=== Likely buffer underrun in AudioOutput.

=== Minim Error ===
=== Likely buffer underrun in AudioOutput.

=== Minim Error ===
=== Likely buffer underrun in AudioOutput.

WARNING:  RXTX Version mismatch
	Jar version = RXTX-2.2pre1
	native lib Version = RXTX-2.2pre2
[0] "COM3"

El código que estoy usando es este:http://luckylarry.co.uk/arduino-projects/arduino-basic-theremin-meets-processing/

EDITO: acabo de corregir esta parte del error:

WARNING:  RXTX Version mismatch
	Jar version = RXTX-2.2pre1
	native lib Version = RXTX-2.2pre2

He descargado unos archivos de JAVA aquí y ya está: http://rxtx.qbang.org/pub/rxtx/

Pero lo otro no se ha solucionado.

¿Alguna idea?

En el foro inglés han respondido esto:

perhaps the wav files you are using are too large to be stored in the buffer when using the "AudioSample" function of the Minim library. Some of the functions have file size limits, particularly if they are they intended for short snippets of sound. Check the support for the Minim library here: http://code.compartmental.net/tools/minim/

Yo he estado mirando la documentación, pero según he visto, esta función debe servir para sonidos cortos, por lo que no sé por qué no funciona.

Si alguien tiene cualquier idea, le agradecería enormemente su ayuda :slight_smile:

Un saludo a todos!