import { controls, evalScope } from '@strudel.cycles/core'; import { registerSoundfonts } from '@strudel.cycles/soundfonts'; import { registerSynthSounds, registerZZFXSounds, samples } from '@strudel.cycles/webaudio'; import * as core from '@strudel.cycles/core'; export async function prebake() { const modulesLoading = evalScope( // import('@strudel.cycles/core'), core, import('@strudel.cycles/mini'), import('@strudel.cycles/tonal'), import('@strudel.cycles/webaudio'), import('@strudel/codemirror'), import('@strudel/hydra'), import('@strudel.cycles/soundfonts'), import('@strudel.cycles/midi'), // import('@strudel.cycles/xen'), // import('@strudel.cycles/serial'), // import('@strudel.cycles/csound'), // import('@strudel.cycles/osc'), controls, // sadly, this cannot be exported from core directly (yet) ); // load samples const ds = 'https://raw.githubusercontent.com/felixroos/dough-samples/main/'; await Promise.all([ modulesLoading, registerSynthSounds(), registerZZFXSounds(), registerSoundfonts(), samples(`${ds}/tidal-drum-machines.json`), samples(`${ds}/piano.json`), samples(`${ds}/Dirt-Samples.json`), samples(`${ds}/EmuSP12.json`), samples(`${ds}/vcsl.json`), ]); }