new method to sequence samples
This commit is contained in:
@ -1,4 +1,15 @@
|
|||||||
+ Array {
|
+ Array {
|
||||||
|
|
||||||
|
sp {
|
||||||
|
arg repeats=inf;
|
||||||
|
var pat;
|
||||||
|
if (this[0].isString,
|
||||||
|
{ pat = Pseq(this[0], inf).collect({|i| Bank(i)}); },
|
||||||
|
{ pat = this[0].collect({|i| Bank(i)})}
|
||||||
|
);
|
||||||
|
^Pindex(pat, this[1], repeats)
|
||||||
|
}
|
||||||
|
|
||||||
pat {
|
pat {
|
||||||
arg node_proxy, quant=4, fade=0.05;
|
arg node_proxy, quant=4, fade=0.05;
|
||||||
node_proxy.quant_(quant);
|
node_proxy.quant_(quant);
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
+ String {
|
+ String {
|
||||||
|
|
||||||
/*
|
|
||||||
* Interface with Bank.sc to return a sample faster
|
|
||||||
*/
|
|
||||||
sp {
|
sp {
|
||||||
arg sampleNumber = 0, repeats=inf;
|
arg sampleNumber = 0, repeats=inf;
|
||||||
^Pindex(Bank(this), sampleNumber, repeats);
|
^Pindex(Bank(this), sampleNumber, repeats);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user