|
|
|
|
@ -205,17 +205,22 @@ FluidBufStats.process(s, b, stats:c, numDerivs:1, action:{c.getn(0,c.numFrames,{
|
|
|
|
|
// run the same array with outliers rejected if outside of k=1.5
|
|
|
|
|
FluidBufStats.process(s, b, stats:c, numDerivs:1,outliersCutoff: 1.5, action:{c.getn(0,c.numFrames,{|item|item.postln})});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//example 1b (run the stats above)
|
|
|
|
|
b = Buffer.loadCollection(s,[1, 8, 9, 10, 11, 12, 16, 99].scramble);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//example 2
|
|
|
|
|
b = Buffer.loadCollection(s,(1..9));
|
|
|
|
|
c = Buffer.loadCollection(s,1.0.series(0.9,0.2));
|
|
|
|
|
/////////////
|
|
|
|
|
//example 2a
|
|
|
|
|
e = [(1..9), 1.0.series(0.9,0.2)].flop.scramble.flop;
|
|
|
|
|
b = Buffer.loadCollection(s,e[0]);
|
|
|
|
|
c = Buffer.loadCollection(s,e[1]);
|
|
|
|
|
d = Buffer.new(s);
|
|
|
|
|
// run the stats and send back the values
|
|
|
|
|
FluidBufStats.process(s, b, stats:d, numDerivs:1, action:{d.getn(0,d.numFrames,{|item|item.postln})});
|
|
|
|
|
// run the same array with the weights
|
|
|
|
|
FluidBufStats.process(s, b, stats:d, numDerivs:1, weights: c, action:{d.getn(0,d.numFrames,{|item|item.postln})});
|
|
|
|
|
|
|
|
|
|
//example 2b (run the stats above)
|
|
|
|
|
e = [(1..9), -100.series(-90,-20)].flop.scramble.flop;
|
|
|
|
|
|
|
|
|
|
//see the example folder for 2 musical comparisons: 1) weighted MFCCs providing different nearest neighbours, and 2) pitch manipulations
|
|
|
|
|
::
|
|
|
|
|
|