mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-21 20:55:12 -04:00
Set active pattern to viewing on init
This commit is contained in:
@@ -71,6 +71,7 @@ export function useReplContext() {
|
||||
const defaultOutput = shouldUseWebaudio ? webaudioOutput : superdirtOutput;
|
||||
const getTime = shouldUseWebaudio ? getAudioContextCurrentTime : getPerformanceTimeSeconds;
|
||||
const init = useCallback(() => {
|
||||
setActivePattern(getViewingPatternData().id);
|
||||
const drawTime = [-2, 2];
|
||||
const drawContext = getDrawContext();
|
||||
const editor = new StrudelMirror({
|
||||
|
||||
Reference in New Issue
Block a user