remove old defaultSynth

This commit is contained in:
Felix Roos
2022-10-27 21:19:17 +02:00
parent 699c8d5b60
commit 60616a5228
8 changed files with 17 additions and 44 deletions
+4 -11
View File
@@ -1,23 +1,14 @@
import { Tone } from '@strudel.cycles/tone';
import { evalScope } from '@strudel.cycles/eval';
import { MiniRepl as _MiniRepl } from '@strudel.cycles/react';
import controls from '@strudel.cycles/core/controls.mjs';
import { samples } from '@strudel.cycles/webaudio';
export const defaultSynth = new Tone.PolySynth().chain(new Tone.Gain(0.5), Tone.Destination).set({
oscillator: { type: 'triangle' },
envelope: {
release: 0.01,
},
});
import { prebake } from '../repl/src/prebake.mjs';
fetch('https://strudel.tidalcycles.org/EmuSP12.json')
.then((res) => res.json())
.then((json) => samples(json, 'https://strudel.tidalcycles.org/EmuSP12/'));
evalScope(
Tone,
controls,
import('@strudel.cycles/core'),
import('@strudel.cycles/tone'),
@@ -29,6 +20,8 @@ evalScope(
import('@strudel.cycles/osc'),
);
prebake();
export function MiniRepl({ tune }) {
return <_MiniRepl tune={tune} defaultSynth={defaultSynth} hideOutsideView={true} />;
return <_MiniRepl tune={tune} hideOutsideView={true} />;
}