load fonts from forked version

This commit is contained in:
Felix Roos 2022-06-20 22:00:14 +02:00
parent d5938a016c
commit 38b1717fac
3 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@ import fetch from 'node-fetch';
const name = '0000_JCLive';
const js = await fetch(`https://surikov.github.io/webaudiofontdata/sound/${name}_sf2_file.js`).then((res) =>
const js = await fetch(`https://felixroos.github.io/webaudiofontdata/sound/${name}_sf2_file.js`).then((res) =>
res.text(),
);
// console.log(js);

View File

@ -5,7 +5,7 @@ async function loadFont(name) {
}
const load = async () => {
// TODO: make soundfont source configurable
const url = `https://surikov.github.io/webaudiofontdata/sound/${name}.js`;
const url = `https://felixroos.github.io/webaudiofontdata/sound/${name}.js`;
console.log('load font', name, url);
const preset = await fetch(url).then((res) => res.text());
let [_, data] = preset.split('={');

View File

@ -1649,7 +1649,7 @@ instrumentNames[8] = 'Celesta: Chromatic Percussion';
instrumentNames[9] = 'Glockenspiel: Chromatic Percussion';
instrumentNames[10] = 'Music Box: Chromatic Percussion';
instrumentNames[11] = 'Vibraphone: Chromatic Percussion';
instrumentNames[12] = 'Marimba: Chromatic Percussion';
instrumentNames[12] = 'Marimba: Chromatic Percussion'; // out of tune
instrumentNames[13] = 'Xylophone: Chromatic Percussion';
instrumentNames[14] = 'Tubular Bells: Chromatic Percussion';
instrumentNames[15] = 'Dulcimer: Chromatic Percussion';
@ -1658,7 +1658,7 @@ instrumentNames[17] = 'Percussive Organ: Organ';
instrumentNames[18] = 'Rock Organ: Organ';
instrumentNames[19] = 'Church Organ: Organ';
instrumentNames[20] = 'Reed Organ: Organ';
instrumentNames[21] = 'Accordion: Organ';
instrumentNames[21] = 'Accordion: Organ'; // some notes are one octave up
instrumentNames[22] = 'Harmonica: Organ';
instrumentNames[23] = 'Tango Accordion: Organ';
instrumentNames[24] = 'Acoustic Guitar (nylon): Guitar';
@ -1675,7 +1675,7 @@ instrumentNames[34] = 'Electric Bass (pick): Bass';
instrumentNames[35] = 'Fretless Bass: Bass';
instrumentNames[36] = 'Slap Bass 1: Bass';
instrumentNames[37] = 'Slap Bass 2: Bass';
instrumentNames[38] = 'Synth Bass 1: Bass';
instrumentNames[38] = 'Synth Bass 1: Bass'; // not found?
instrumentNames[39] = 'Synth Bass 2: Bass';
instrumentNames[40] = 'Violin: Strings';
instrumentNames[41] = 'Viola: Strings';
@ -1701,7 +1701,7 @@ instrumentNames[60] = 'French Horn: Brass';
instrumentNames[61] = 'Brass Section: Brass';
instrumentNames[62] = 'Synth Brass 1: Brass';
instrumentNames[63] = 'Synth Brass 2: Brass';
instrumentNames[64] = 'Soprano Sax: Reed';
instrumentNames[64] = 'Soprano Sax: Reed'; // out of time?
instrumentNames[65] = 'Alto Sax: Reed';
instrumentNames[66] = 'Tenor Sax: Reed';
instrumentNames[67] = 'Baritone Sax: Reed';
@ -1711,7 +1711,7 @@ instrumentNames[70] = 'Bassoon: Reed';
instrumentNames[71] = 'Clarinet: Reed';
instrumentNames[72] = 'Piccolo: Pipe';
instrumentNames[73] = 'Flute: Pipe';
instrumentNames[74] = 'Recorder: Pipe';
instrumentNames[74] = 'Recorder: Pipe'; // out of time?
instrumentNames[75] = 'Pan Flute: Pipe';
instrumentNames[76] = 'Blown bottle: Pipe';
instrumentNames[77] = 'Shakuhachi: Pipe';
@ -1722,7 +1722,7 @@ instrumentNames[81] = 'Lead 2 (sawtooth): Synth Lead';
instrumentNames[82] = 'Lead 3 (calliope): Synth Lead';
instrumentNames[83] = 'Lead 4 (chiff): Synth Lead';
instrumentNames[84] = 'Lead 5 (charang): Synth Lead';
instrumentNames[85] = 'Lead 6 (voice): Synth Lead';
instrumentNames[85] = 'Lead 6 (voice): Synth Lead'; // terranigma!
instrumentNames[86] = 'Lead 7 (fifths): Synth Lead';
instrumentNames[87] = 'Lead 8 (bass + lead): Synth Lead';
instrumentNames[88] = 'Pad 1 (new age): Synth Pad';