|
|
|
@ -93,7 +93,7 @@ s.waitForBoot{
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
(
|
|
|
|
// FluidBufToKr
|
|
|
|
// FluidBufToKr should throw error
|
|
|
|
|
|
|
|
|
|
|
|
s.waitForBoot{
|
|
|
|
s.waitForBoot{
|
|
|
|
Routine{
|
|
|
|
Routine{
|
|
|
|
@ -154,7 +154,7 @@ s.waitForBoot{
|
|
|
|
Routine{
|
|
|
|
Routine{
|
|
|
|
~synth = {
|
|
|
|
~synth = {
|
|
|
|
arg buf;
|
|
|
|
arg buf;
|
|
|
|
FluidBufToKr.kr(buf,5).poll;
|
|
|
|
FluidBufToKr.kr(buf,numFrames:5).poll;
|
|
|
|
}.play;
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
|
|
|
|
2.wait;
|
|
|
|
2.wait;
|
|
|
|
@ -197,7 +197,7 @@ s.waitForBoot{
|
|
|
|
arg buf = 999;
|
|
|
|
arg buf = 999;
|
|
|
|
FluidKrToBuf.kr(SinOsc.kr(Array.fill(5,{rrand(0.0,1.0)})),buf);
|
|
|
|
FluidKrToBuf.kr(SinOsc.kr(Array.fill(5,{rrand(0.0,1.0)})),buf);
|
|
|
|
|
|
|
|
|
|
|
|
FluidBufToKr.kr(buf,5).poll; ////////// this will work becaues it knows how many frames the buffer will be
|
|
|
|
FluidBufToKr.kr(buf,numFrames:5).poll; ////////// this will work becaues it knows how many frames the buffer will be
|
|
|
|
}.play;
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
|
|
|
|
2.wait;
|
|
|
|
2.wait;
|
|
|
|
@ -208,3 +208,155 @@ s.waitForBoot{
|
|
|
|
}.play;
|
|
|
|
}.play;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// test start frame:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
// should skip the 0
|
|
|
|
|
|
|
|
s.waitForBoot{
|
|
|
|
|
|
|
|
Routine{
|
|
|
|
|
|
|
|
var buf = Buffer.loadCollection(s,[0,1,2,3,4,7]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s.sync;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var sig = FluidBufToKr.kr(buf,1);
|
|
|
|
|
|
|
|
sig.poll;
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
// should be 2,3,4
|
|
|
|
|
|
|
|
s.waitForBoot{
|
|
|
|
|
|
|
|
Routine{
|
|
|
|
|
|
|
|
var buf = Buffer.loadCollection(s,[0,1,2,3,4,7]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s.sync;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var sig = FluidBufToKr.kr(buf,2,3);
|
|
|
|
|
|
|
|
sig.poll;
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
// last four slots should be 0
|
|
|
|
|
|
|
|
s.waitForBoot{
|
|
|
|
|
|
|
|
Routine{
|
|
|
|
|
|
|
|
var buf = Buffer.loadCollection(s,0.dup(10));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s.sync;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
FluidKrToBuf.kr(LFDNoise3.kr(1.dup(6)),buf);
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.wait;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// defer{buf.plot};
|
|
|
|
|
|
|
|
buf.loadToFloatArray(action:{
|
|
|
|
|
|
|
|
arg vals;
|
|
|
|
|
|
|
|
vals.postln;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
// middle slots should be not zero
|
|
|
|
|
|
|
|
s.waitForBoot{
|
|
|
|
|
|
|
|
Routine{
|
|
|
|
|
|
|
|
var buf = Buffer.loadCollection(s,0.dup(4));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s.sync;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
FluidKrToBuf.kr(LFDNoise3.kr(1.dup(2)),buf,destStartFrame:1);
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.wait;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// defer{buf.plot};
|
|
|
|
|
|
|
|
buf.loadToFloatArray(action:{
|
|
|
|
|
|
|
|
arg vals;
|
|
|
|
|
|
|
|
vals.postln;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
// should throw error
|
|
|
|
|
|
|
|
s.waitForBoot{
|
|
|
|
|
|
|
|
Routine{
|
|
|
|
|
|
|
|
var buf = Buffer.loadCollection(s,0.dup(4));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s.sync;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
FluidKrToBuf.kr(LFDNoise3.kr(1.dup(2)),buf,destStartFrame:3);
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.wait;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// defer{buf.plot};
|
|
|
|
|
|
|
|
buf.loadToFloatArray(action:{
|
|
|
|
|
|
|
|
arg vals;
|
|
|
|
|
|
|
|
vals.postln;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
// should be 0,0,200,3000,0,0
|
|
|
|
|
|
|
|
s.waitForBoot{
|
|
|
|
|
|
|
|
Routine{
|
|
|
|
|
|
|
|
var buf = Buffer.alloc(s,7);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s.sync;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var sig = 3.collect{arg i; DC.kr((i+1)*100)};
|
|
|
|
|
|
|
|
// sig.poll;
|
|
|
|
|
|
|
|
FluidKrToBuf.kr(sig,buf,1,2,2);
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.wait;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buf.loadToFloatArray(action:{
|
|
|
|
|
|
|
|
arg vals;
|
|
|
|
|
|
|
|
vals.postln;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
// should be 100,200,300,400
|
|
|
|
|
|
|
|
s.waitForBoot{
|
|
|
|
|
|
|
|
Routine{
|
|
|
|
|
|
|
|
var buf = Buffer.alloc(s,4);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s.sync;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var sig = 4.collect{arg i; DC.kr((i+1)*100)};
|
|
|
|
|
|
|
|
// sig.poll;
|
|
|
|
|
|
|
|
FluidKrToBuf.kr(sig,buf);
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.wait;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buf.loadToFloatArray(action:{
|
|
|
|
|
|
|
|
arg vals;
|
|
|
|
|
|
|
|
vals.postln;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}.play;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|