This commit is contained in:
Felix Roos 2022-03-18 22:01:21 +01:00
parent d973d56ef6
commit 1e57526d7e
5 changed files with 37 additions and 35 deletions

View file

@ -85,7 +85,7 @@ function useRepl({tune, defaultSynth, autolink = true, onEvent, onDraw}) {
}
}, [pattern]),
onSchedule: useCallback((_events, cycle2) => logCycle(_events, cycle2), [pattern]),
ready: !!pattern
ready: !!pattern && !!activeCode
});
const broadcast = usePostMessage(({data: {from, type}}) => {
if (type === "start" && from !== id) {