add Pdyn for gated modulations

This commit is contained in:
2024-01-05 14:31:50 +01:00
parent fefec58da7
commit afda9b886e
2 changed files with 11 additions and 1 deletions

View File

@ -101,7 +101,7 @@
}
pwrand { arg weights, repeats=1;
^Pwrand(this, weights, repeats);
^Pwrand(this, weights.normalizeSum, repeats);
}
pwhite { arg repeats=inf;

10
Classes/PDyn.sc Normal file
View 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})
}
}