Closed prisme60 closed 9 years ago
I am using the score from this link: http://www.cipoo.net/downloads/scores/AveMariaArcadelt.zip from this page : http://www.cipoo.net/music_t.html
you need to be running on the nwc file, not the zip file. eg.
python2 ./nwc2ly.py AveMariaArcadelt.nwc
I guess you will also need to be in the directory of /src/
so nwc2ly.py can read the ini file
Sorry I was a little bit lazy. I didn't try to read your source file. The problem seems to come from the line 83:
cp.read( 'C:\development\nwc2ly\hans version\nwc2ly.ini' )
I have changes myself the path:
cp.read( 'nwc2ly.ini' )
So now it works better, but It remains an issue during the processing :
christian@coolermaster:~/Téléchargements/src$ python2 nwc2ly.py AveMariaArcadelt.nwc
python nwc2ly is running...
Compressed NWC detected!
Dumping to uncompressed NWC format and attemping conversion soon...
Inflating done. Now opening new file...
NWC file version 1.75 detected!
title,author,copyright1,copyright2,comments: ('Ave Maria', 'Jacques Arcadelt (1504? - 1568)', 'File may be freely copied and distributed', 'www.cipoo.net', '')
Start measure 1
margins 0.70919997 0.78799999 0.78799999 0.70919997
Staff size: 16
Working on Staff 1
end 0
[uppersize,lowersize] [16, 12]
[staffName,groupName,endingBar,stafftype,noOfLines] ['s', 'Standard', '|.', 'Orchestra', 5]
looping 0 where 559 NoOfLyrics: 1
reach
blocks 1 lyrics len 377 at 562
A_ -men._ Ma_ -ri_ -a,_ o_ -ra,_ o_ -ra_ pro_ no_ -bis._ e_ -sus._ i_ -bus,_
165 Tokens found 1592
Bar 1 completed,
Bar 2 completed,
Bar 3 completed,
Bar 4 completed,
Bar 5 completed,
Bar 6 completed,
Bar 7 completed,
Bar 8 completed,
Bar 9 completed,
Bar 10 completed,
Bar 11 completed,
Bar 12 completed,
Bar 13 completed,
Bar 14 completed,
Bar 15 completed,
Bar 16 completed,
Bar 17 completed,
Bar 18 completed,
Bar 19 completed,
Bar 20 completed,
Bar 21 completed,
Bar 22 completed,
Error while reading data at 2682
Dumping whatever result first
% Generated from python nwc2ly converter v1.0 by Joshua Koo (zz85nus@gmail.com)
\paper
{
#(set-paper-size "a4")
#(set-global-staff-size 16)
topmargin = 0.71\in
leftmargin = 0.79\in
rightmargin = 0.79\in
bottommargin = 0.71\in
raggedlastbottom = ##t
}
\version "2.5.31"
\header {
title = "Ave Maria"
composer = "Jacques Arcadelt (1504? - 1568)"
copyright = \markup \teeny "File may be freely copied and distributed"
footer = "www.cipoo.net"
%{ %}
}
\score {
<<
<type 'exceptions.Exception'> tuple index out of range
Traceback (most recent call last):
File "nwc2ly.py", line 1337, in <module>
result = processStaff(nwcData)
File "nwc2ly.py", line 659, in processStaff
result += "\\bar \"" + barlines[ ord(data[2]) ] + "\"\n\t\t"
IndexError: tuple index out of range
Please send all bugs and requests to zz85nus@gmail.com
I'll try looking into this, but this has been a long time (10 years!) since I've touched nwc and lilypond.
Please check out the lastest commits. It should run on your nwc file.
I am using python 2.7.10 on my debian distribution:
According to the error message, it seems the section settings is not found, but my ini file is present in the same directory!