add base path + use relative links

This commit is contained in:
Felix Roos 2023-01-03 23:02:41 +01:00
parent 027c669ad7
commit 11d3251c67
9 changed files with 34 additions and 21 deletions

View file

@ -2,17 +2,16 @@ import { Pattern, toMidi, valueToMidi } from '@strudel.cycles/core';
import { samples } from '@strudel.cycles/webaudio';
export async function prebake() {
const { BASE_URL = '/' } = import.meta.env;
// https://archive.org/details/SalamanderGrandPianoV3
// License: CC-by http://creativecommons.org/licenses/by/3.0/ Author: Alexander Holm
return await Promise.all([
samples(`${BASE_URL}piano.json`, `${BASE_URL}piano/`),
samples(`./piano.json`, `./piano/`),
// https://github.com/sgossner/VCSL/
// https://api.github.com/repositories/126427031/contents/
// LICENSE: CC0 general-purpose
samples(`${BASE_URL}vcsl.json`, 'github:sgossner/VCSL/master/'),
samples(`${BASE_URL}tidal-drum-machines.json`, 'github:ritchse/tidal-drum-machines/main/machines/'),
samples(`${BASE_URL}EmuSP12.json`, `${BASE_URL}EmuSP12/`),
samples(`./vcsl.json`, 'github:sgossner/VCSL/master/'),
samples(`./tidal-drum-machines.json`, 'github:ritchse/tidal-drum-machines/main/machines/'),
samples(`./EmuSP12.json`, `./EmuSP12/`),
// samples('github:tidalcycles/Dirt-Samples/master'),
]);
}