cuthbertLab / music21j

Javascript port of music21 -- Toolkit for Computational Musicology
Other
142 stars 41 forks source link

Cant make it work on Apache #223

Closed batata004 closed 10 months ago

batata004 commented 1 year ago

Hi,

I copied all the files to my webserver (Apache 2.4 latest) and tried to run all demos, and all of them show an error message. For example, when accessing:

http://localhost/music21j-master/testHTML/delayMic.html

It shows the error message:

delayMic.html:28 Uncaught ReferenceError: music21 is not defined

This is the same error on all demos. What I am doing wrong?

jacobtylerwalls commented 1 year ago

Did you also copy the javascript bundle referenced here? https://github.com/cuthbertLab/music21j/blob/6188b0578d39a90abdf8c91ec3d795e56838f97e/testHTML/delayMic.html#L3

jacobtylerwalls commented 10 months ago

See the README files in the main directory and the build directory for information on producing a frontend asset bundle. Feel free to make use of resources on the internet for understanding npm commands also.