implement fit with pat state
This commit is contained in:
parent
738cea0025
commit
8052e10f0c
2 changed files with 9 additions and 18 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue