added a fixed dictionary example that crashes the server for now...

nix
Pierre Alexandre Tremblay 7 years ago
parent 7a5cff49ec
commit a0da9ecd2a

@ -51,3 +51,20 @@ Routine{
(Main.elapsedTime - t).postln;
}.play;
)
// trying to grow a buffer on itself
e = Buffer.alloc(s,1,1);
(
Routine {
FluidBufCompose.process(s,srcBufNumA: b.bufnum, srcBufNumB: e.bufnum, dstBufNum: e.bufnum);
s.sync;
e.query;
s.sync;
FluidBufCompose.process(s,srcBufNumA: c.bufnum, nChansA: 1, srcBufNumB: e.bufnum, dstBufNum: e.bufnum);
s.sync;
e.query;
}.play;
)
e.plot
e.play

@ -159,3 +159,46 @@ Routine({
c.getn(0,100,{|x| x.postln});
}).play;
)
// fixed dictionaries experiment
Buffer.freeAll;
(
b = Buffer.read(s,"../../release-packaging/AudioFiles/Tremblay-AaS-AcousticStrums-M.wav".resolveRelative);
c = Buffer.new(s);
x = Buffer.new(s);
e = Buffer.alloc(s,1,1);
)
(
Routine {
FluidBufNMF.process(s,b.bufnum,0,88200,0,1, c.bufnum, x.bufnum, rank:10);
s.sync;
c.query;
}.play;
)
// find the picking
{PlayBuf.ar(10,c.bufnum)[5]}.play
// copy all the other ranks on itself (the 5 above is omited from the array and is in the 2nd compose
(
Routine{
[ 0, 1, 2, 3, 4, 6, 7, 8, 9 ].do({|chan|FluidBufCompose.process(s,srcBufNumA: x.bufnum, startChanA:chan, nChansA: 1, srcBufNumB: e.bufnum, dstBufNum: e.bufnum)});
s.sync;
e.query;
s.sync;
FluidBufCompose.process(s,srcBufNumA: x.bufnum, startChanA: 5, nChansA: 1, srcBufNumB: e.bufnum, dstStartChanB: 1, dstBufNum: e.bufnum);
s.sync;
e.query;
}.play;
)
//
(
Routine{
FluidBufNMF.process(s, b.bufnum, dstBufNum: c.bufnum, dictBufNum: e.bufnum, dictFlag: 2, rank:2);
s.sync;
c.query;
}.play;
)
Loading…
Cancel
Save