dont autolink minirepl

This commit is contained in:
Felix Roos
2022-02-18 21:56:11 +01:00
parent da2c5c738b
commit cd815d064d
2 changed files with 5 additions and 10 deletions
+1 -8
View File
@@ -12,17 +12,10 @@ const defaultSynth = new Tone.PolySynth().chain(new Tone.Gain(0.5), Tone.Destina
});
function MiniRepl({ tune, height = 100 }) {
/* const defaultSynth = useMemo(() => {
return new Tone.PolySynth().chain(new Tone.Gain(0.5), Tone.Destination).set({
oscillator: { type: 'triangle' },
envelope: {
release: 0.01,
},
});
}, []); */
const { code, setCode, activateCode, activeCode, setPattern, error, cycle, dirty, log, togglePlay } = useRepl({
tune,
defaultSynth,
autolink: false,
});
return (
<div className="flex space-y-0 overflow-auto" style={{ height }}>