mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-13 14:48:32 +00:00
use fetch instead of import
This commit is contained in:
parent
b11003c472
commit
669fce36e9
@ -1,6 +1,5 @@
|
||||
import { Pattern, toMidi } from '@strudel.cycles/core';
|
||||
import { samples } from '@strudel.cycles/webaudio';
|
||||
import EmuSP12 from '../public/EmuSP12.json' assert {type: "json"};
|
||||
|
||||
export function prebake() {
|
||||
samples(
|
||||
@ -42,7 +41,9 @@ export function prebake() {
|
||||
// License: CC-by http://creativecommons.org/licenses/by/3.0/ Author: Alexander Holm
|
||||
'./piano/',
|
||||
);
|
||||
samples(EmuSP12, './EmuSP12/');
|
||||
fetch('EmuSP12.json')
|
||||
.then(res => res.json())
|
||||
.then(json => samples(json, './EmuSP12/'));
|
||||
}
|
||||
|
||||
const maxPan = toMidi('C8');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user