add Pdyn for gated modulations
This commit is contained in:
@ -101,7 +101,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
pwrand { arg weights, repeats=1;
|
pwrand { arg weights, repeats=1;
|
||||||
^Pwrand(this, weights, repeats);
|
^Pwrand(this, weights.normalizeSum, repeats);
|
||||||
}
|
}
|
||||||
|
|
||||||
pwhite { arg repeats=inf;
|
pwhite { arg repeats=inf;
|
||||||
|
|||||||
10
Classes/PDyn.sc
Normal file
10
Classes/PDyn.sc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
Pdyn {
|
||||||
|
*new {
|
||||||
|
arg function, hash;
|
||||||
|
if (hash.isNil) { hash = 10.collect({
|
||||||
|
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".choose })
|
||||||
|
.join("").asSymbol;
|
||||||
|
}
|
||||||
|
^Pfunc({Ndef(hash, function).asMap})
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user