diff --git a/release-packaging/Classes/FluidBufStats.sc b/release-packaging/Classes/FluidBufStats.sc index 6957e50..695b35a 100644 --- a/release-packaging/Classes/FluidBufStats.sc +++ b/release-packaging/Classes/FluidBufStats.sc @@ -14,7 +14,7 @@ FluidBufStats : UGen{ } *kr { |source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, stats, numDerivs = 0, low = 0, middle = 50, high = 100, outliersCutoff = -1, weights, weightsThreshold = 0, trig = 1, blocking = 0| - ^this.multiNew(\control, source, startFrame, numFrames, startChan, numChans, stats, numDerivs, low, middle, high,trig, blocking); + ^this.multiNew(\control, source, startFrame, numFrames, startChan, numChans, stats, numDerivs, low, middle, high, outliersCutoff, weights, weightsThreshold, trig, blocking); } *process { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, stats, numDerivs = 0, low = 0, middle = 50, high = 100, outliersCutoff = -1, weights, weightsThreshold = 0, action| diff --git a/release-packaging/HelpSource/Classes/FluidBufStats.schelp b/release-packaging/HelpSource/Classes/FluidBufStats.schelp index adaa2fe..14c1295 100644 --- a/release-packaging/HelpSource/Classes/FluidBufStats.schelp +++ b/release-packaging/HelpSource/Classes/FluidBufStats.schelp @@ -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 ::