fix: loopAt with cps 1 for fallback
This commit is contained in:
parent
c1649b9dc0
commit
d126c28b85
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue