From a8672ec432fbc76d80f37022d73740aa01daaca9 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sat, 21 May 2022 22:51:42 +0200 Subject: [PATCH] fix repl imports --- repl/src/App.jsx | 1 + tutorial/MiniRepl.jsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/repl/src/App.jsx b/repl/src/App.jsx index 354fdce8..3480a27d 100644 --- a/repl/src/App.jsx +++ b/repl/src/App.jsx @@ -22,6 +22,7 @@ evalScope( import('@strudel.cycles/midi'), import('@strudel.cycles/xen'), import('@strudel.cycles/webaudio'), + import('@strudel.cycles/osc'), ); const initialUrl = window.location.href; diff --git a/tutorial/MiniRepl.jsx b/tutorial/MiniRepl.jsx index 866e1c7f..a01a2f8b 100644 --- a/tutorial/MiniRepl.jsx +++ b/tutorial/MiniRepl.jsx @@ -1,6 +1,7 @@ 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'; export const defaultSynth = new Tone.PolySynth().chain(new Tone.Gain(0.5), Tone.Destination).set({ oscillator: { type: 'triangle' }, @@ -11,6 +12,7 @@ export const defaultSynth = new Tone.PolySynth().chain(new Tone.Gain(0.5), Tone. evalScope( Tone, + controls, import('@strudel.cycles/core'), import('@strudel.cycles/tone'), import('@strudel.cycles/tonal'), @@ -18,6 +20,7 @@ evalScope( import('@strudel.cycles/midi'), import('@strudel.cycles/xen'), import('@strudel.cycles/webaudio'), + import('@strudel.cycles/osc'), ); export function MiniRepl({ tune }) {