We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Trouble running proMIDI on Proc 0118
Page Index Toggle Pages: 1
Trouble running proMIDI on Proc 0118 (Read 1173 times)
Trouble running proMIDI on Proc 0118
Oct 6th, 2006, 6:04am
 
I am getting this error when running the Bowls example:

C:/DOCUME~1/GIANPA~1/LOCALS~1/Temp/build43761.tmp/Temporary_6592_2268.java:63:7:
63:59: Semantic Error: No applicable overload was found for a constructor with signature "Controller(int, int, int)" in type "promidi.Controller". Perhaps you wanted the overloaded version "Controller(int $1, int $2);" instead?


C:/DOCUME~1/GIANPA~1/LOCALS~1/Temp/build43761.tmp/Temporary_6592_2268.java:77:9:
77:37: Semantic Error: No applicable overload was found for a constructor with signature "ProgramChange(int, int)" in type "promidi.ProgramChange". Perhaps you wanted the overloaded version "ProgramChange(int $1);" instead?

What is going on?
Re: Trouble running proMIDI on Proc 0118
Reply #1 - Oct 6th, 2006, 3:52pm
 
Sorry there is a bug in the example, it is for the older proMIDI version. I will fix it es soon as possible.

In the new version you create a Controller with the controller number and value and do not need to pass the midichannel.

Take a look here:
http://texone.org/promidi/controller_class_controller.htm
Re: Trouble running proMIDI on Proc 0118
Reply #2 - Oct 6th, 2006, 6:02pm
 
Okay, I changed the call to Controller() to remove the first 0, also to ProgramChange.

Now the program runs, I get the bouncing balls, but then I get this:

javax.sound.midi.InvalidMidiDataException: data2 out of range: -1
Re: Trouble running proMIDI on Proc 0118
Reply #3 - Oct 7th, 2006, 8:42pm
 
Hm that is strange I tested the example on my machine without any trouble. I will go over the documentation to check the examples as soon as possible.
Re: Trouble running proMIDI on Proc 0118
Reply #4 - Oct 8th, 2006, 12:00am
 
What version of the example did you test? The one on the website, with proMIDI 2.0?

Or did you change the example by removing the channel number?
Page Index Toggle Pages: 1