(buf) noveltyslice helpfiles now with minslicelen examples (and last fix of the class def!)

nix
Pierre Alexandre Tremblay 6 years ago
parent 0cbd93ec8d
commit 1d594cfe78

@ -9,7 +9,7 @@ FluidBufNoveltySlice : UGen {
source.isNil.if {"FluidBufNoveltySlice: Invalid source buffer".throw}; source.isNil.if {"FluidBufNoveltySlice: Invalid source buffer".throw};
indices.isNil.if {"FluidBufNoveltySlice: Invalid features buffer".throw}; indices.isNil.if {"FluidBufNoveltySlice: Invalid features buffer".throw};
^super.new1(rate, source, startFrame, numFrames, startChan, numChans, indices, feature, kernelSize, threshold, filterSize, windowSize, hopSize, fftSize, maxFFTSize, kernelSize, filterSize, doneAction, blocking); ^super.new1(rate, source, startFrame, numFrames, startChan, numChans, indices, feature, kernelSize, threshold, filterSize, minSliceLength, windowSize, hopSize, fftSize, maxFFTSize, kernelSize, filterSize, doneAction, blocking);
} }

@ -84,10 +84,10 @@ c = Buffer.new(s);
) )
( (
// with basic params // with basic params, with a minimum slight length to avoid over
Routine{ Routine{
t = Main.elapsedTime; t = Main.elapsedTime;
FluidBufNoveltySlice.process(s,b, indices: c, threshold:0.45); FluidBufNoveltySlice.process(s,b, indices: c, threshold:0.4,filterSize: 4, minSliceLength: 8);
(Main.elapsedTime - t).postln; (Main.elapsedTime - t).postln;
}.play }.play
) )

@ -65,17 +65,17 @@ code::
b = Buffer.read(s,File.realpath(FluidNoveltySlice.class.filenameSymbol).dirname.withTrailingSlash ++ "../AudioFiles/Nicol-LoopE-M.wav"); b = Buffer.read(s,File.realpath(FluidNoveltySlice.class.filenameSymbol).dirname.withTrailingSlash ++ "../AudioFiles/Nicol-LoopE-M.wav");
// basic param (the process add a latency of windowSize samples // basic param (the process add a latency of windowSize samples
{var sig = PlayBuf.ar(1,b,loop:1); [FluidNoveltySlice.ar(sig,0,11,0.33) * 0.5, DelayN.ar(sig, 1, 512 * (((11+1)/2) + 1)/ s.sampleRate)]}.play {var sig = PlayBuf.ar(1,b,loop:1); [FluidNoveltySlice.ar(sig,0,11,0.33) * 0.5, DelayN.ar(sig, 1, 512 * (((11+1)/2) + 1)/ s.sampleRate, 0.2)]}.play
// other parameters // other parameters
{var sig = PlayBuf.ar(1,b,loop:1); [FluidNoveltySlice.ar(sig, 1, 31, 0.004, 4, 128, 32) * 0.5, DelayN.ar(sig, 1, 32 * (((31+1)/2) + 4)/ s.sampleRate)]}.play {var sig = PlayBuf.ar(1,b,loop:1); [FluidNoveltySlice.ar(sig, 1, 31, 0.0035, 4, 100, 128, 32) * 0.5, DelayN.ar(sig, 1, 32 * (((31+1)/2) + 4)/ s.sampleRate,0.2)]}.play
// more musical trans-trigged autopan // more musical trans-trigged autopan
( (
{ {
var sig, trig, syncd, pan; var sig, trig, syncd, pan;
sig = PlayBuf.ar(1,b,loop:1); sig = PlayBuf.ar(1,b,loop:1);
trig = FluidNoveltySlice.ar(sig, 0, 11, 0.25, 5, 128, 32); trig = FluidNoveltySlice.ar(sig, 0, 11, 0.25, 5, 1, 128, 32);
syncd = DelayN.ar(sig, 1, 64 * (((11+1)/2) + 5) / s.sampleRate); syncd = DelayN.ar(sig, 1, 64 * (((11+1)/2) + 5) / s.sampleRate);
pan = TRand.ar(-1,1,trig); pan = TRand.ar(-1,1,trig);
Pan2.ar(syncd,pan); Pan2.ar(syncd,pan);

Loading…
Cancel
Save