build
This commit is contained in:
parent
98f91607cd
commit
4487834591
15 changed files with 452 additions and 520 deletions
4
docs/dist/useRepl.js
vendored
4
docs/dist/useRepl.js
vendored
|
|
@ -20,13 +20,13 @@ function useRepl({tune, defaultSynth, autolink = true, onEvent, onDraw}) {
|
|||
const activateCode = async (_code = code) => {
|
||||
if (activeCode && !dirty) {
|
||||
setError(void 0);
|
||||
!cycle.started && cycle.start();
|
||||
cycle.start();
|
||||
return;
|
||||
}
|
||||
try {
|
||||
setPending(true);
|
||||
const parsed = await evaluate(_code);
|
||||
!cycle.started && cycle.start();
|
||||
cycle.start();
|
||||
broadcast({type: "start", from: id});
|
||||
setPattern(() => parsed.pattern);
|
||||
if (autolink) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue