Merge pull request #150 from larkob/prebake-emusp12

add webdirt drum samples to prebake for general availability
This commit is contained in:
Felix Roos 2022-07-12 18:58:46 +02:00 committed by GitHub
commit 1dad987073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,7 @@
"start": "vite",
"build": "vite build",
"preview": "vite preview",
"test": "mocha ./src/test --colors",
"test": "NODE_OPTIONS='--experimental-fetch' mocha ./src/test --colors",
"snapshot": "cd ./src/ && rm -f ./tunes.snapshot.mjs && node ./shoot.mjs > ./tunes.snapshot.mjs",
"add-license": "cat etc/agpl-header.txt ../docs/static/js/*LICENSE.txt > /tmp/strudel-license.txt && cp /tmp/strudel-license.txt ../docs/static/js/*LICENSE.txt",
"predeploy": "npm run build",

View File

@ -41,6 +41,9 @@ export function prebake() {
// License: CC-by http://creativecommons.org/licenses/by/3.0/ Author: Alexander Holm
'./piano/',
);
fetch('EmuSP12.json')
.then(res => res.json())
.then(json => samples(json, './EmuSP12/'));
}
const maxPan = toMidi('C8');