Import list of numbers into buffer~ object
I am capturing data from a sensor at a rate of 4000 samples per second, typically a few seconds per test. I need to convert the resulting text files to an audio format to edit and listen to them.
Typical data is in a text file and looks like this:
5960,
5920,
5664,
5928,
6000,
5976,
5968,
6120,
5824,
6240,
6144,
.....
up to say 30,000 values.
I can output it as 16 bit unsigned ints if necessry.
Is there a way in Max (on a Mac) to import data like this into a buffer~ object?
I assume if I can get it into a buffer~ I can listen to it, do further processing or export it to wav format.
Or is there some other way in Max to convert a lists of numbers like this into a lossless audio format?
did you already try to directly convert the input to an audiostream using [sig~] ?
just use poke: