rename to juxFlip

This commit is contained in:
Lu[ke] Wilson 2025-08-29 17:20:18 +01:00
parent e2cdce5ac9
commit 781c477078

View file

@ -2339,14 +2339,17 @@ export const { juxBy, juxby } = register(['juxBy', 'juxby'], function (by, func,
/** /**
* Like juxBy, except it flips the ears each cycle. * Like juxBy, except it flips the ears each cycle.
* @name fluxBy * @name juxFlipBy
* @synonyms fluxby * @synonyms juxflipby, fluxBy, fluxby
* @example * @example
* s("bd lt [~ ht] mt cp ~ bd hh").fluxBy(".8", rev) * s("bd lt [~ ht] mt cp ~ bd hh").juxFlipBy(".8", rev)
*/ */
export const { fluxBy, fluxby } = register(['fluxBy', 'fluxby'], function (by, func, pat) { export const { juxFlipBy, juxflipby, fluxBy, fluxby } = register(
return slowcat(pat._juxBy(by, func, pat), pat._juxBy(-by, func, pat)); ['juxFlipBy', 'juxflipby', 'fluxBy', 'fluxby'],
}); function (by, func, pat) {
return slowcat(pat._juxBy(by, func, pat), pat._juxBy(-by, func, pat));
},
);
/** /**
* The jux function creates strange stereo effects, by applying a function to a pattern, but only in the right-hand channel. * The jux function creates strange stereo effects, by applying a function to a pattern, but only in the right-hand channel.
@ -2363,15 +2366,17 @@ export const jux = register('jux', function (func, pat) {
/** /**
* Like jux, but flips the ears each cycle. * Like jux, but flips the ears each cycle.
* @name juxFlip
* @synonyms flux
* @example * @example
* s("bd lt [~ ht] mt cp ~ bd hh").flux(rev) * s("bd lt [~ ht] mt cp ~ bd hh").juxFlip(rev)
* @example * @example
* s("bd lt [~ ht] mt cp ~ bd hh").flux(press) * s("bd lt [~ ht] mt cp ~ bd hh").juxFlip(press)
* @example * @example
* s("bd lt [~ ht] mt cp ~ bd hh").flux(iter(4)) * s("bd lt [~ ht] mt cp ~ bd hh").juxFlip(iter(4))
*/ */
export const flux = register('flux', function (func, pat) { export const { juxFlip, flux } = register(['juxFlip', 'flux'], function (func, pat) {
return pat._fluxBy(1, func, pat); return pat._jux(1, func, pat);
}); });
/** /**