I have loaded a VBAPSpeakerArray
to a Buffer. It’s a 62 channel speaker array and I’m computing the optimised pairs and triplets based on azimuth and inclination values loaded from a .csv
file.
b = Buffer.loadCollection(s, ~vbapSpeakerArray.getSetsAndMatrices);
For the performance, I would like to persist this analysis to a file rather than have to call .getSetsAndMatrices
on load which is a blocking operation.
I’m having a hard time with this. If I save .write
the buffer as raw, headerless data, Buffer.read
can’t read it. If I save it as a .wav
file, my loaded values differ from the original (I guess because the load function is interpreting them as amplitude values between -1 and 1).
What’s the simplest way to load a list of values from a file to a Buffer?