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 › incompatibility between minim and controlp5
Page Index Toggle Pages: 1
incompatibility between minim and controlp5? (Read 469 times)
incompatibility between minim and controlp5?
May 11th, 2008, 5:10pm
 
I am using both minim and control5 libraries on a project, and when I run my sketch, I have this error message in the console:

Type "Controller" is imported on demand from package "ddf.minim" and package "controlP5".

And then, the error message point me to this line:
if((player != null) && (player.hasControl(Controller.PAN))){    

I just deleted "(player.hasControl(Controller.PAN)", and the error dispeared, but I would like to still use it.

Is there another way to fix the problem?

Thank you!
Re: incompatibility between minim and controlp5?
Reply #1 - May 11th, 2008, 5:17pm
 
use

Code:

(player.hasControl(ddf.minim.Controller.PAN)

then processing knows which Controller class to use.
Re: incompatibility between minim and controlp5?
Reply #2 - May 11th, 2008, 5:21pm
 
Great!!

Thanks a lot!
Re: incompatibility between minim and controlp5?
Reply #3 - May 11th, 2008, 10:32pm
 
Yah, it's a drag that you have to disambiguate like that. I spose I should consider putting those constants in the Minim object instead because Controller is a popular class name (it's also in proMidi, I think).
Page Index Toggle Pages: 1