hotfix: add default code
This commit is contained in:
parent
2c9f9d785f
commit
79f7938b33
1 changed files with 3 additions and 1 deletions
|
|
@ -59,6 +59,8 @@ async function getModule(name) {
|
||||||
return modules.find((m) => m.packageName === name);
|
return modules.find((m) => m.packageName === name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const initialCode = `$: s("[bd <hh oh>]*2").bank("tr909").dec(.4)`;
|
||||||
|
|
||||||
export function useReplContext() {
|
export function useReplContext() {
|
||||||
const { isSyncEnabled, audioEngineTarget } = useSettings();
|
const { isSyncEnabled, audioEngineTarget } = useSettings();
|
||||||
const shouldUseWebaudio = audioEngineTarget !== audioEngineTargets.osc;
|
const shouldUseWebaudio = audioEngineTarget !== audioEngineTargets.osc;
|
||||||
|
|
@ -77,7 +79,7 @@ export function useReplContext() {
|
||||||
transpiler,
|
transpiler,
|
||||||
autodraw: false,
|
autodraw: false,
|
||||||
root: containerRef.current,
|
root: containerRef.current,
|
||||||
initialCode: '// LOADING',
|
initialCode,
|
||||||
pattern: silence,
|
pattern: silence,
|
||||||
drawTime,
|
drawTime,
|
||||||
drawContext,
|
drawContext,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue