|
@@ -53,7 +53,7 @@ export default defineComponent({
|
|
|
// console.log("🚀 ~ note:", note)
|
|
|
// console.log(`/soundfonts/${data.subject}/${note.name}${note.octave}.mp3`)
|
|
|
const noteAudio = new Howl({
|
|
|
- src: `/soundfonts/${data.subject}/${note.name}${note.octave}.mp3`,
|
|
|
+ src: `${location.pathname.replace('.html', '/')}/soundfonts/${data.subject}/${note.name}${note.octave}.mp3`,
|
|
|
loop: true,
|
|
|
});
|
|
|
data.soundFonts[note.realKey] = noteAudio;
|