mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
35 lines
1.2 KiB
JavaScript
35 lines
1.2 KiB
JavaScript
import { controls, evalScope } from '@strudel.cycles/core';
|
|
import { registerSoundfonts } from '@strudel.cycles/soundfonts';
|
|
import { registerSynthSounds, registerZZFXSounds, samples } from '@strudel.cycles/webaudio';
|
|
|
|
export async function prebake() {
|
|
const modulesLoading = evalScope(
|
|
import('@strudel.cycles/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`),
|
|
]);
|
|
}
|