Synthesiser getVoices()?

#1

Does anyone else think a Synthesiser::getVoices() method would be nice to have in JUCE?

0 Likes

#2

https://docs.juce.com/master/classSynthesiser.html#ab81708603690f13cf5c29b8e7e7e519c
Or am I missing something?

0 Likes

#3

Yes, you’re missing an ‘s’ at the end of getVoice() :wink:

0 Likes

#4

I see… how could I :smiley:
I guess the locks in the other methods have a good reason #threadsafe :wink:

0 Likes

#5

Not sure I follow. I’m just asking for a method that returns an array of voices so I don’t have to keep using for loops with getNumVoices() and getVoice().

0 Likes