dont create defaultSynth on start

This commit is contained in:
Felix Roos 2022-04-05 23:40:21 +02:00
parent fb52227a92
commit a242c0654b
3 changed files with 15 additions and 9 deletions

View file

@ -3,7 +3,7 @@ import CodeMirror, { markEvent, markParens } from './CodeMirror';
import cx from './cx';
import logo from './logo.svg';
import playStatic from './static.mjs';
import { defaultSynth } from '@strudel.cycles/tone';
import { getDefaultSynth } from '@strudel.cycles/tone';
import * as tunes from './tunes.mjs';
import useRepl from './useRepl.mjs';
import { useWebMidi } from './useWebMidi';
@ -52,6 +52,7 @@ function getRandomTune() {
}
const randomTune = getRandomTune();
const defaultSynth = getDefaultSynth();
function App() {
const [editor, setEditor] = useState();