fix example

This commit is contained in:
Felix Roos 2024-05-31 10:34:45 +02:00
parent 2cda78d2db
commit 08f0825561
4 changed files with 17 additions and 9 deletions

View file

@ -1,4 +1,4 @@
import { useState, useRef, useCallback, useMemo, useEffect } from 'react';
import { useStlte, useRef, useCallback, useMemo, useEffect } from 'react';
import { Icon } from './Icon';
import { silence, noteToMidi, _mod } from '@strudel/core';
import { getPunchcardPainter } from '@strudel/draw';
@ -73,6 +73,9 @@ export function MiniRepl({
onUpdateState: (state) => {
setReplState({ ...state });
},
afterEval:() => {
}
});
// init settings
editor.setCode(code);