qsdfo / musicxml_parser

Python MusicXML parser to load mxml files as a pianoroll representation. The pianoroll i
19 stars 6 forks source link

module not found #1

Open retorquere opened 3 years ago

retorquere commented 3 years ago

running the sample code

from musicxml_parser.scoreToPianoroll import scoreToPianoroll
score_path = "test.xml"
quantization = 16
pianoroll, articulation = scoreToPianoroll(score_path, quantization)

gives me this error:

Traceback (most recent call last):
  File "/Users/emile/Documents/./mxl2dtx", line 26, in <module>
    from musicxml_parser.scoreToPianoroll import scoreToPianoroll
  File "/usr/local/lib/python3.9/site-packages/musicxml_parser/scoreToPianoroll.py", line 23, in <module>
    from Musicxml_parser.smooth_dynamic import smooth_dyn
ModuleNotFoundError: No module named 'Musicxml_parser'
CyrilSLi commented 2 years ago

Open /usr/local/lib/python3.9/site-packages/musicxml_parser/scoreToPianoroll.py in a code editor, go to lines 23 and 24, and change the "M" in "Musicxml_parser" to lowercase