implement fit with pat state

This commit is contained in:
Felix Roos 2024-01-21 00:39:26 +01:00
parent 738cea0025
commit 8052e10f0c
2 changed files with 9 additions and 18 deletions

View file

@ -142,19 +142,8 @@ export function repl({
// already defined..
}
const fit = register('fit', (pat) =>
pat.withHap((hap) =>
hap.withValue((v) => ({
...v,
speed: scheduler.cps / hap.whole.duration, // overwrite speed completely?
unit: 'c',
})),
),
);
evalScope({
loopAt,
fit,
all,
hush,
setCps,