I’m currently building my first instrument plugin and I’m setting up my Synthesiser/SynthesiserVoice/SynthesiserSound classes and I’m just wondering what the best method of accessing parameter data from the SynthesiserVoice classes is.
Should I be storing a pointer to each parameter value in every voice instance? Or since the parameters will be the same for every voice, should I create a SharedResourcePointer inside the SynthesiserVoice for a class which stores the pointers to my parameters then each voice accesses them through that. Or should I be doing something else entirely?
Sorry if this is a bit of a noob question, I’m still learning C++ through my JUCE projects.