fix: load soundfonts in prebake

This commit is contained in:
Felix Roos 2023-04-06 00:00:49 +02:00
parent 8edb086178
commit c138cf0b76
2 changed files with 3 additions and 5 deletions

View File

@ -153,5 +153,3 @@ export function registerSoundfonts() {
);
});
}
registerSoundfonts();

View File

@ -1,13 +1,13 @@
import { Pattern, noteToMidi, valueToMidi } from '@strudel.cycles/core';
//import { registerSoundfonts } from '@strudel.cycles/soundfonts';
import { registerSoundfonts } from '@strudel.cycles/soundfonts';
import { registerSynthSounds, samples } from '@strudel.cycles/webaudio';
export async function prebake() {
// https://archive.org/details/SalamanderGrandPianoV3
// License: CC-by http://creativecommons.org/licenses/by/3.0/ Author: Alexander Holm
registerSynthSounds();
//registerSoundfonts();
await Promise.all([
registerSynthSounds(),
registerSoundfonts(),
samples(`./piano.json`, `./piano/`, { prebake: true }),
// https://github.com/sgossner/VCSL/
// https://api.github.com/repositories/126427031/contents/