Hello all,
im trying to write onset indices to a file to be read later by a Buffer UGen.
In the following example the file gets written but its empty. Theres probably something obvious in the file writing im missing?
(Im also unsure whether audio would be the right format for the onset data…)
(
//prep some buffers
b = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav");
c = Buffer.new(s);
)
(
// with basic params
Routine{
t = Main.elapsedTime;
FluidBufOnsetSlice.process(s,b, indices: c,metric:7, threshold:0.1).wait;
(Main.elapsedTime - t).postln;
}.play)
c.query
c.plot
c.write(Platform.resourceDir +/+ "sounds/onsets.aif")
d=Buffer.read(s, Platform.resourceDir +/+ "sounds/onsets.aif")
d.query
d.plot
Thank you,
Jan