giuliomoro If you want to record a file of a fixed length you can use this example https://github.com/BelaPlatform/Bela/blob/master/examples/Audio/record-audio/render.cpp If you want to stream a file to disk you can use this other example: https://github.com/giuliomoro/bela-to-matlab/tree/main Take out all the serverOut stuff as it's for sending audio over a network