|
|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
TITLE:: FluidBufAmpGate
|
|
|
|
|
SUMMARY:: Amplitude-based Slicer for Buffers
|
|
|
|
|
SUMMARY:: Amplitude-based Gating Slicer for Buffers
|
|
|
|
|
CATEGORIES:: Libraries>FluidDecomposition
|
|
|
|
|
RELATED:: Guides/FluCoMa, Guides/FluidDecomposition, Guides/FluidBufMultiThreading
|
|
|
|
|
|
|
|
|
|
@ -145,7 +145,7 @@ c = Buffer.new(s);
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// slice the samples
|
|
|
|
|
FluidBufAmpGate.process(s, b, indices:c, rampUp:1103, rampDown:2205, onThreshold:-27, offThreshold: -31, minSilenceLength:1100, lookBack:441, highPassFreq:40)
|
|
|
|
|
FluidBufAmpGate.process(s, b, indices:c, rampUp:110, rampDown:2205, onThreshold:-27, offThreshold: -31, minSilenceLength:1100, lookBack:441, highPassFreq:40)
|
|
|
|
|
c.query
|
|
|
|
|
c.getn(0,c.numFrames*2,{|item|item.postln;})
|
|
|
|
|
//reformatting to read the onsets and offsets as pairs
|
|
|
|
|
@ -184,7 +184,7 @@ c = Buffer.new(s);
|
|
|
|
|
// with basic params
|
|
|
|
|
Routine{
|
|
|
|
|
t = Main.elapsedTime;
|
|
|
|
|
FluidBufAmpGate.process(s, b, indices: c, rampUp:1, rampDown:20);
|
|
|
|
|
FluidBufAmpGate.process(s, b, indices: c, rampUp:1, rampDown:10, onThreshold: -30);
|
|
|
|
|
(Main.elapsedTime - t).postln;
|
|
|
|
|
}.play
|
|
|
|
|
)
|
|
|
|
|
|