I wish to record the microphone measurement using the audio read for 10 seconds.
And then save the audio read to a file.
Is there any efficient way to do it?
Currently I use file.log to save the file in the render function. but this is very inefficient.
Can I run the render function for only a limited time, such as 10 seconds.
and then save the audio read in the cleanup function.
It would be nice to have Bela examples for data file read and write.