This commit is contained in:
Felix Roos 2022-03-21 19:50:47 +01:00
parent 98f91607cd
commit 4487834591
15 changed files with 452 additions and 520 deletions

View file

@ -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) {