So, I've made a subclass of SynthesiserVoice which has some custom functions. I would like to be able to call these functions from outside the voice.
1) I don't have access to the array within the Synthesiser which holds the voices. If I did, I could just loop through any voices that exist and call these functions.
2) If i try to use the Synthesiser's getVoice(), I can call, say, stopNote(), but I can't call my own functions.
Can anyone suggest how I should approach this problem? I am probably teetering on the edge of what I understand about OOP at this point, so "Google <jargon filled phrase>" could be a totally acceptable answer here ;). Or is there a better way to do what I'm trying to do within the framework that's already here?
thanks in advance
n