Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 79f7938

Browse files
committed
hotfix: add default code
1 parent 2c9f9d7 commit 79f7938

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

website/src/repl/useReplContext.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ async function getModule(name) {
5959
return modules.find((m) => m.packageName === name);
6060
}
6161

62+
const initialCode = `$: s("[bd <hh oh>]*2").bank("tr909").dec(.4)`;
63+
6264
export function useReplContext() {
6365
const { isSyncEnabled, audioEngineTarget } = useSettings();
6466
const shouldUseWebaudio = audioEngineTarget !== audioEngineTargets.osc;
@@ -77,7 +79,7 @@ export function useReplContext() {
7779
transpiler,
7880
autodraw: false,
7981
root: containerRef.current,
80-
initialCode: '// LOADING',
82+
initialCode,
8183
pattern: silence,
8284
drawTime,
8385
drawContext,

0 commit comments

Comments
 (0)