Skip to content

Commit

Permalink
update examples with the new soundfont
Browse files Browse the repository at this point in the history
  • Loading branch information
spessasus committed Sep 1, 2024
1 parent a2c3a54 commit 39e3779
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/advanced_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Sequencer } from '../src/spessasynth_lib/sequencer/sequencer.js'
import { Synthetizer } from '../src/spessasynth_lib/synthetizer/synthetizer.js'

// load the soundfont
fetch("../soundfonts/SGM.sf3").then(async response => {
fetch("../soundfonts/GeneralUserGS.sf3").then(async response => {
// load the soundfont into an array buffer
let soundFontBuffer = await response.arrayBuffer();
document.getElementById("message").innerText = "SoundFont has been loaded!";
Expand Down
2 changes: 1 addition & 1 deletion examples/offline_audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { audioBufferToWav } from '../src/spessasynth_lib/utils/buffer_to_wav.js'
import { MIDI } from '../src/spessasynth_lib/midi_parser/midi_loader.js'

// load the soundfont
fetch("../soundfonts/SGM.sf3").then(async response => {
fetch("../soundfonts/GeneralUserGS.sf3").then(async response => {
// load the soundfont into an array buffer
let soundFontArrayBuffer = await response.arrayBuffer();
document.getElementById("message").innerText = "SoundFont has been loaded!";
Expand Down
2 changes: 1 addition & 1 deletion examples/simple_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Synthetizer } from '../src/spessasynth_lib/synthetizer/synthetizer.js'
import { WORKLET_URL_ABSOLUTE } from "../src/spessasynth_lib/synthetizer/worklet_url.js";

// load the soundfont
fetch("../soundfonts/SGM.sf3").then(async response => {
fetch("../soundfonts/GeneralUserGS.sf3").then(async response => {
// load the soundfont into an array buffer
let soundFontArrayBuffer = await response.arrayBuffer();
document.getElementById("message").innerText = "SoundFont has been loaded!";
Expand Down
2 changes: 1 addition & 1 deletion examples/visualizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const channelColors = [
const VISUALIZER_GAIN = 2;

// load the soundfont
fetch("../soundfonts/SGM.sf3").then(async response => {
fetch("../soundfonts/GeneralUserGS.sf3").then(async response => {
// load the soundfont into an array buffer
let soundFontArrayBuffer = await response.arrayBuffer();
document.getElementById("message").innerText = "SoundFont has been loaded!";
Expand Down

0 comments on commit 39e3779

Please sign in to comment.