Skip to content

Commit

Permalink
fixed link to instrument
Browse files Browse the repository at this point in the history
  • Loading branch information
abudaan committed Nov 4, 2019
1 parent 2e19436 commit 5cf4426
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 33 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.cache
assets
dist
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!doctype html><html><head><title>VexFlow</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><link rel="stylesheet" media="screen" href="/vexflow-test/public/style.9f6343d7.css"></head><body> <div id="tooltip"></div> <div id="controls"> <button id="play" disabled>play</button> <button id="stop" disabled>stop</button> </div> <div id="app"></div> <div id="hitareas"></div> <script src="/vexflow-test/public/src.3ed26811.js"></script>
<!doctype html><html><head><title>VexFlow</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><link rel="stylesheet" media="screen" href="/vexflow-test/public/style.9f6343d7.css"></head><body> <div id="tooltip"></div> <div id="controls"> <button id="play" disabled>play</button> <button id="stop" disabled>stop</button> </div> <div id="app"></div> <div id="hitareas"></div> <script src="/vexflow-test/public/src.eccc4398.js"></script>
</body></html>
31 changes: 0 additions & 31 deletions public/src.3ed26811.js

This file was deleted.

4 changes: 3 additions & 1 deletion src/create-song.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ export const createSong = async (ppq: number, numerator: number, denominator: nu
const track = sequencer.createTrack('piano');
const part = sequencer.createPart();
const srcName = 'TP00-PianoStereo';
let url = `https://groovy3.heartbeatjs.org/assets/groovy-instruments/mono-mp3-112/${srcName}.mp3.112.json`;
let url = `https://heartbeatjs.org/assets/groovy-instruments/mono-mp3-112/${srcName}.mp3.112.json`;
// let url = `assets/${srcName}.mp3.json`;
if (sequencer.browser === 'firefox') {
url = `https://heartbeatjs.org/groovy-instruments/mono-22k-q1/${srcName}.json`;
// url = `assets/${srcName}.ogg.json`;
}
const json = await loadJSON(url);
await addAssetPack(json);
Expand Down

0 comments on commit 5cf4426

Please sign in to comment.