WIP
This commit is contained in:
parent
ccbf28f2db
commit
c5f1085bd9
4 changed files with 21 additions and 3 deletions
|
|
@ -3536,3 +3536,21 @@ export const morph = (frompat, topat, bypat) => {
|
|||
bypat = reify(bypat);
|
||||
return frompat.innerBind((from) => topat.innerBind((to) => bypat.innerBind((by) => _morph(from, to, by))));
|
||||
};
|
||||
|
||||
/**
|
||||
* Wavefolding distortion
|
||||
*
|
||||
* @name fold
|
||||
* @param {number | Pattern} distortion
|
||||
*
|
||||
*/
|
||||
export const fold = register('fold', function (amt, vol = 1, pat) {
|
||||
return pat.withvValue((v) => {
|
||||
return {
|
||||
...v,
|
||||
distortion: amt,
|
||||
distortvol: vol,
|
||||
distorttype: 'fold',
|
||||
};
|
||||
}).innerJoin();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue