Hello everybody!
First off, I don't have a board yet, so maybe the answers are trivial.
As far as I understood the structure of the bela, you put all audio-critical code in the render() function. Say I want to give the user the opportunity to load different samples (not audio-save) via MIDI or sensor input while the render() function is already up and running, where do I put that code?
I assume that for MIDI I could use midiMessageCallback() function. Is there a similar function for sensor input? And in general, is there a way to call a "slow" (lower-priority) thread from inside the render() function (lets say, I want to automatically load a new sample every 5 minutes, with a counter inside the render() function, but the file handling somewhere external to the audio thread)?
Cheers
seba