mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-01 21:37:42 -04:00
Merge commit '85d3d7392ecfdc985fa8cc93e01846bec0f16dc4' into talk
This commit is contained in:
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+2
@@ -356,6 +356,7 @@ function useRepl({ tune, defaultSynth, autolink = true, onEvent, onDraw: onDrawP
|
||||
}
|
||||
}, [activeCode, onDrawProp]);
|
||||
|
||||
const hideHeader = useMemo(() => activeCode && activeCode.includes('strudel hide-header'), [activeCode]);
|
||||
// cycle hook to control scheduling
|
||||
const cycle = useCycle({
|
||||
onDraw,
|
||||
@@ -469,6 +470,7 @@ function useRepl({ tune, defaultSynth, autolink = true, onEvent, onDraw: onDrawP
|
||||
}, []);
|
||||
|
||||
return {
|
||||
hideHeader,
|
||||
pending,
|
||||
code,
|
||||
setCode,
|
||||
|
||||
@@ -36,6 +36,7 @@ function useRepl({ tune, defaultSynth, autolink = true, onEvent, onDraw: onDrawP
|
||||
}
|
||||
}, [activeCode, onDrawProp]);
|
||||
|
||||
const hideHeader = useMemo(() => activeCode && activeCode.includes('strudel hide-header'), [activeCode]);
|
||||
// cycle hook to control scheduling
|
||||
const cycle = useCycle({
|
||||
onDraw,
|
||||
@@ -151,6 +152,7 @@ function useRepl({ tune, defaultSynth, autolink = true, onEvent, onDraw: onDrawP
|
||||
}, []);
|
||||
|
||||
return {
|
||||
hideHeader,
|
||||
pending,
|
||||
code,
|
||||
setCode,
|
||||
|
||||
Reference in New Issue
Block a user