fix: loopAt with cps 1 for fallback

This commit is contained in:
Felix Roos 2023-06-28 22:25:49 +02:00
parent c1649b9dc0
commit d126c28b85

View File

@ -2321,6 +2321,13 @@ export const splice = register(
false, // turns off auto-patternification
);
// this function will be redefined in repl.mjs to use the correct cps value.
// It is still here to work in cases where repl.mjs is not used
export const { loopAt, loopat } = register(['loopAt', 'loopat'], function (factor, pat) {
return _loopAt(factor, pat, 1);
});
/**
* Makes the sample fit the given number of cycles and cps value, by
* changing the speed. Please note that at some point cps will be