File format for data files on RPi

johnsabom's icon

I want to be able to run data-files synced with audio files to trigger light events. I am creating the data-files in MAX. Then load the file that is for the audio file I want to play. What file type is the data files? How do I change data file when I change audio file in the multi buffer?

Alex Norman's icon

I'm not sure what you mean by "run data-files", currently the runner only supports loading audio files, but you could interpret that audio however you want in your patcher.

we use libsndfile on the rpi to load audio files for exposed buffer~ and data objects. libsndfile supports quite a few formats but wav and aiff are likely the easiest to deal with.

If you're trying to synchronize audio and other event data using audio files, can you simply create a multi channel audio file where the first few channels represent your audio and others represent events? then you can just load that into a buffer and use groove to play the audio back and the sync out to to drive other objects that read your event channels?

johnsabom's icon

Sorry for the language, I wanted to "load a data-file", which I created in MAX, into the data object on RNBO on RPi.

I gave up on that and now I am creating a sound file instead to load into a buffer~, as you proposed. The data coding went quite advanced with two int digits for addressing devices, the first two decimals the characteristics and then three decimals for value, saved on a sample frame.

Now next step is to build a sequencer for the light events and read it in and out of the buffer~ which I am quite struggling with. This is probably a too advanced project for me.