Hello, I’m a new user of the framework trying to port an app I built for my undergrad thesis from openFrameworks to Juce. The app utilizes a swarm intelligence algorithm and was built for iOS while now we want to have that in a audio plugin (synth) format.
The swarm algorithm is expressed in a class named Swarm that inherits from AnimatedAppComponent and I have an object of that class as a member variable of the AudioProcessor in order to sonify the algorithm through a Synthesiser object. At the same time, the algorithm gets visualised by making AudioProcessor’s Swarm variable a child of its corresponding AudioProcessorEditor.
For the sonification I pass a reference of the Swarm object to the SynthesiserVoice added to the AudioProcessor’s Synthesiser. And now I need to map the Swarm to the audio engine (exported from Faust and added as a member variable of the SynthesiserVoice). Should I perform the mapping in the renderNextBlock() function? By using sample rate and block size I could use that function as a “timer” for specific rates of Swarm’s state but is that a good idea? I want to know if you had any similar experience, any suggestion would be greatly appreciated!
I apologise beforehand for not knowing my way around the framework…