mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
hotfix: add default code
This commit is contained in:
@@ -59,6 +59,8 @@ async function getModule(name) {
|
||||
return modules.find((m) => m.packageName === name);
|
||||
}
|
||||
|
||||
const initialCode = `$: s("[bd <hh oh>]*2").bank("tr909").dec(.4)`;
|
||||
|
||||
export function useReplContext() {
|
||||
const { isSyncEnabled, audioEngineTarget } = useSettings();
|
||||
const shouldUseWebaudio = audioEngineTarget !== audioEngineTargets.osc;
|
||||
@@ -77,7 +79,7 @@ export function useReplContext() {
|
||||
transpiler,
|
||||
autodraw: false,
|
||||
root: containerRef.current,
|
||||
initialCode: '// LOADING',
|
||||
initialCode,
|
||||
pattern: silence,
|
||||
drawTime,
|
||||
drawContext,
|
||||
|
||||
Reference in New Issue
Block a user