new method to sequence samples

This commit is contained in:
2023-12-28 14:50:14 +01:00
parent 343b3cd614
commit 70cf2193fa
2 changed files with 11 additions and 5 deletions

View File

@ -1,4 +1,15 @@
+ 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 {
arg node_proxy, quant=4, fade=0.05;
node_proxy.quant_(quant);

View File

@ -1,11 +1,6 @@
+ String {
/*
* Interface with Bank.sc to return a sample faster
*/
sp {
arg sampleNumber = 0, repeats=inf;
^Pindex(Bank(this), sampleNumber, repeats);
}
}