Hi all!
I am trying to integrate OpenSheetMusicDisplay in my website.
I copied/pasted the opensheetmusicdisplay.min.js file in my "Public files", and added this snippet of code :
import {opensheetmusicdisplay} from 'public/opensheetmusicdisplay.min.js';
$w.onReady(function () {
var container = $w("#section1");
var osmd = new opensheetmusicdisplay.OpenSheetMusicDisplay(container);
var loadPromise = osmd.load("BeetAnGeSample.musicxml");
loadPromise.then(function () {
osmd.render();
});
});
Unfortunately, I have this LoadUserCodeError: Failed to import user code script: Load failed, meaning, I guess, the error occurs at the import statement (the first line of code 🤔)
Any tips / ideas?
Thank you all!
Maxime
Trying to integrate the last version (1.6.1) of OpenSheetMusicDisplay