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 & HelpOther Libraries › Special library objects inside other objects
Page Index Toggle Pages: 1
Special library objects inside other objects? (Read 494 times)
Special library objects inside other objects?
Oct 14th, 2009, 7:41pm
 
I was wondering if there were any special considerations I should take in this kind of situation. I have a Beads waveplayer, 2 envelopes, and a gain inside of their own class ( a 'voice' class in this case), along with an instance of ControlP5. There are multiple instances of 'voice' in the sketch.
So I was wondering if there are any special things I should consider when working with this, because as it is things start and stop working in ways I can't comprehend.  
(EDIT) This part turned out to just be my own bad organization. Now I'm only asking the below question. (EDIT)

Also, right now I have to initialize ControlP5 in a method outside of the class, so that 'new ControlP5(this)' will access what it needs to. Is there a less ugly way of doing this?
Page Index Toggle Pages: 1