Hi everyone!
In my previous post I was trying to conect an ultranonic sensor, currently, it's working 
But, now, my problem is:
I'm trying to conect Processing with Arduino, I wanna play musical notes with it.
First, I've installed the library "minim" into Processing libraries folder. Then I've put the notes (wav files) into Sketch folder and, also, I've put my COM port.
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"
The code I'm putting: http://luckylarry.co.uk/arduino-projects/arduino-basic-theremin-meets-processing/
What could be the problem?
Thanks you so much!
I've just fixed the error:
WARNING:Â RXTX Version mismatch
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
I've downloaded java source files here: http://rxtx.qbang.org/pub/rxtx/ and the error has disappeared.
The problem is the another error yet... 
Someone can help me?
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/
Thanks you for your reply!
But... the music files I trying to put are very shorts, about one or two seconds (they are only piano notes: A, B, C...).
That's the reason of thinking it isn't the problem.
I've just read the documentation of minim and it says:
AudioSample can be thought of like a sample in a drum machine. It is meant to be used for short sounds that simply need to be triggered and then forgotten about
I don't know why does the code fails...
Help! 
I've downloaded java source files here: http://rxtx.qbang.org/pub/rxtx/ and the error has disappeared.
The problem is the another error yet...
Someone can help me?
What error are you seeing now? You said that you fixed the error from your original post.
What OS are you using?
Hi!
Thanks you for reply!
Sorry for my explaination... my English is not good enough... XD
I mean:
2 errors were shown:
=== Minim Error ===
=== Likely buffer underrun in AudioOutput.
WARNING:Â RXTX Version mismatch
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
First, I could solve the second one by downloading some RXTX files.
But, the first one ("Likely buffer underrun in AudioOutput" ) is the one I cannot fix.
Currently I'm running Windows 7
Where did you put the files to be accessed by the code like this:
 GSharp = minim.loadSample("GSharp.wav", 2048);
 A = minim.loadSample("A.wav", 2048);
 Bb = minim.loadSample("Bb.wav", 2048);
 B = minim.loadSample("B.wav", 2048);
I suspect that the Processing application can not find the files, so loadSample is failing.
First af all, I got an error because of files, but when I put them into sketch folder, any error was shown.
So I've downloaded the files and I renamed them and, later, I put them into sketch folder (ctrl+k).
Thanks you for your reply!