humlib
humlib copied to clipboard
Wrong spine number produced by musicxml2hum
A wrong number of spine is produced by running musicxml2hum,
The error message is
Previous line is: * *v *v * * * *v *v *v *v * *
Error on line 299:
Expected 8 fields, but found 9
Line is: * * *v *v * * * * *
The output krn file is
8E- 8c# 8ff 8gg#X 8ggg#X . 8g#X 8cc# 8ff 4r 8gg#X 8ccc#X 8fff 4r 8EE- 8E- 8G#X 8c# 8f 8g#X 8E- 8ccn 8ff 8gg#X 4r 8ggg#X 8ggg#X
* * * * * * *clefG2 * * * * *
8E-J 8c#J 8ggn 8bb- 8bbb-X . 8b-J 8cc# 8ee- 8gg . 8cccnJ 8eee- 8ggg . 8EE-J 8E- 8Gn 8c# 8e- 8gn 8b-X 8E-J 8cc#X 8ggn 8bb-X . 8bbb-XJ 8bbb-XJ
* *v *v * * * *v *v *v *v * *
* * *v *v * * * * *
You will have to post the original MusicXML file in order for me to debug the problem. I suspect that the four *v *v *v *v need to be separated onto two separate lines, since independent merging spines cannot be adjacent to each other on a line.
Ideally a short extract of a few measures that contains the problem, but the entire original file would be fine. If it is a short extract, then you can place the MusicXML data directly in the issue messages, starting with a line containing:
``` xml
[paste xml data]
```
If it is a large file, then posting as an attachment is better (longer than a few thousand lines). If you don't want the score to be publically available, then you can email me the data file directly.
Email sent, please check your email with ccrma.stanford.edu.