From 781c477078f1429a7dabe4e628fa287a3bf7ef5f Mon Sep 17 00:00:00 2001 From: "Lu[ke] Wilson" Date: Fri, 29 Aug 2025 17:20:18 +0100 Subject: [PATCH] rename to juxFlip --- packages/core/pattern.mjs | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/packages/core/pattern.mjs b/packages/core/pattern.mjs index 154643c7..c68d4510 100644 --- a/packages/core/pattern.mjs +++ b/packages/core/pattern.mjs @@ -2339,14 +2339,17 @@ export const { juxBy, juxby } = register(['juxBy', 'juxby'], function (by, func, /** * Like juxBy, except it flips the ears each cycle. - * @name fluxBy - * @synonyms fluxby + * @name juxFlipBy + * @synonyms juxflipby, fluxBy, fluxby * @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) { - return slowcat(pat._juxBy(by, func, pat), pat._juxBy(-by, func, pat)); -}); +export const { juxFlipBy, juxflipby, fluxBy, fluxby } = register( + ['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. @@ -2363,15 +2366,17 @@ export const jux = register('jux', function (func, pat) { /** * Like jux, but flips the ears each cycle. + * @name juxFlip + * @synonyms flux * @example - * s("bd lt [~ ht] mt cp ~ bd hh").flux(rev) + * s("bd lt [~ ht] mt cp ~ bd hh").juxFlip(rev) * @example - * s("bd lt [~ ht] mt cp ~ bd hh").flux(press) + * s("bd lt [~ ht] mt cp ~ bd hh").juxFlip(press) * @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) { - return pat._fluxBy(1, func, pat); +export const { juxFlip, flux } = register(['juxFlip', 'flux'], function (func, pat) { + return pat._jux(1, func, pat); }); /**