move zzfx stuff to separate file

This commit is contained in:
Felix Roos 2023-08-30 15:27:07 +02:00
parent afb8ab44cf
commit 1463f27a0f
4 changed files with 113 additions and 94 deletions

View file

@ -6,6 +6,7 @@ import {
panic,
webaudioOutput,
registerSynthSounds,
registerZZFXSounds,
} from '@strudel.cycles/webaudio';
import { registerSoundfonts } from '@strudel.cycles/soundfonts';
import { useCallback, useState } from 'react';
@ -26,7 +27,7 @@ async function init() {
import('@strudel.cycles/osc'),
);
await Promise.all([loadModules, registerSynthSounds(), registerSoundfonts()]);
await Promise.all([loadModules, registerSynthSounds(), registerZZFXSounds(), registerSoundfonts()]);
}
init();