lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vocal music sheet - hyphens wrongly engraved


From: Phil Holmes
Subject: Re: Vocal music sheet - hyphens wrongly engraved
Date: Thu, 11 Apr 2013 11:29:24 +0100

Jun,
 
There are a number of "challenges" with this song file.  It's these that produce the errors rather than versions of lilypond.  I thought it might be better to run through the errors and their fixes line by line - hopefully this will help you into the future.  I'll put my commented fixes in a different colour, and apologise to those who don't get on with HTML or top posting....  Here's the logfile output:
 
GNU LilyPond 2.16.0
Processing `D:/Music/NWC2Ly/Though Your Sins Be as Scarlet.ly'
Parsing...
D:/Music/NWC2Ly/Though Your Sins Be as Scarlet.ly:12:168: error: GUILE signaled an error for the _expression_ beginning here
  title = \markup \fill-line { \line {} \line { Source: Pentecostal Hymns Nos. 1 and 2 Combined, by Henry Date (Chicago, Illinois: The Hope Publishing Company, 1894), #
                                                                                                                                                                         427.} }
 
D:/Music/NWC2Ly/Though Your Sins Be as Scarlet.ly:12:167: error: not a markup
  title = \markup \fill-line { \line {} \line { Source: Pentecostal Hymns Nos. 1 and 2 Combined, by Henry Date (Chicago, Illinois: The Hope Publishing Company, 1894),
                                                                                                                                                                       # 427.} }
 
This is a problem with the information in your file - the comments include a #, which is a reserved character for lilypond.  I could add a feature to my converter to allow this, but the simplest fix is to change # to No.  However, I also use the comments for a different part of the lilypond output, so the optimum fix is to change the information completely, getting rid of this comment.  I've done this in the attached file.
 
D:/Music/NWC2Ly/Though Your Sins Be as Scarlet.ly:15:0: error: syntax error, unexpected \paper
 
\paper{
 
This is a consequence of the issue above, and is fixed as described above.
 
D:/Music/NWC2Ly/xSinsUnnamed-000Alyrics.ly:3:46: error: syntax error, unexpected '}'
 "1. \markup{ \concat{ \char ##x0093 Though"}
                                              }  your sins be as scar -- let,
 
This is a bug in my program - your quote marks are not ascii and so have to be encoded, and I've got that wrong when they're with other text.  The simplest fix is to use ordinary quote marks, and also to get rid of the stanza (verse) numbers and use the converter feature with automatic stanza numbers - these look much better.
 
D:/Music/NWC2Ly/xSinsUnnamed-000Alyrics.ly:13:2: error: syntax error, unexpected '}'
 
  }
D:/Music/NWC2Ly/xSinsUnnamed-000Clyrics.ly:3:45: error: syntax error, unexpected '}'
 "3. \markup{ \concat{  He\char ##x0092 ll"}
                                             }  for -- give your trans -- gress -- ions,
 
D:/Music/NWC2Ly/xSinsUnnamed-000Clyrics.ly:13:2: error: syntax error, unexpected '}'
 
  }
 
These are all the same issue.

D:/Music/NWC2Ly/xSinsThoughYourSins.ly:28:0: error: syntax error, unexpected >>
 
>>
 
D:/Music/NWC2Ly/xSinsThoughYourSins.ly:41:0: error: syntax error, unexpected '}'
 
}
 
D:/Music/NWC2Ly/Though Your Sins Be as Scarlet.ly:44:0: error: syntax error, unexpected '}'
 
}
 
C:/Program Files (x86)/LilyPondV2.16.0/usr/share/lilypond/current/ly/init.ly:111:66: error: syntax error, unexpected $end
   (ly:parser-error parser (_ "expected error, but none found"))))
                                                                 
 
Unbound variable: 427.}
fatal error: failed files: "D:\\Music\\NWC2Ly\\Though Your Sins Be as Scarlet.ly"
 
Program finished
These are caused by the rather strange music in bar 10.  The music uses Noteworthy's ability to put voicing onto a single staff line - this is quite hard to convert to lilypond (it requires my converter to use what's called implicit voicing) and with the triplets combined with the slurs and the voicing, my converter gets it wrong.  The _best_ way to fix this is to update the noteworthy input to use separate layered staves where separate voices are needed.  Where there aren't separate notes, we just have hidden rests.
 
I've done that as attached.  There are some difficulties with the way the tie swaps from an upstem note to a downstem one in bar 10, so I've used a hidden note to accommodate it.  Once done, and rerunning the converter and lilypond, we get:
 
D:/Music/NWC2Ly/xSinsSoprano.ly:15:84: warning: barcheck failed at: 1/4
 ees'8.^\markup {\large \italic "Duet"}  ees'16^\markup {\large \italic "Gently"}  
                                                                                    |  % 1
 
This is because your tune starts with a partial bar (an upbeat, or an anacrusis).  We fix with the a lilypond command of \partial.  The other thing to be aware of is that your lyrics ignore the beaming of the notes, so we allow for that with a converter command: ignoreBeams.
 
Finally - you've helped me find a bug where we have the lyric word!".  I've fixed this and have just uploaded an updated version.
 
I hope my notes have been useful and you'll persevere with my converter and lilypond.  There's some learning to do, but the results are worth it, IMHO.

--
Phil Holmes
 
 
----- Original Message -----
From: Jun Wang
Sent: Wednesday, April 10, 2013 1:15 PM
Subject: RE: Vocal music sheet - hyphens wrongly engraved

Hi Phil

I tried nwc2ly, the converted lilypond file version is 2.15.26.  and It gave some syntax error under my  2.16.2 system.
Any way to convert 2.15.26 to my current version or I have install a old version?

Thanks
Jun


From: address@hidden
To: address@hidden; address@hidden
Subject: Re: Vocal music sheet - hyphens wrongly engraved
Date: Sat, 6 Apr 2013 18:01:58 +0100

Try converting direct from Noteworthy to Lilypond:
 

--
Phil Holmes
 
 
----- Original Message -----
From: Jun Wang
Sent: Saturday, April 06, 2013 2:45 PM
Subject: Vocal music sheet - hyphens wrongly engraved

Hi 

I am new to lilypond, I am helping my church to generate music sheet in pdf in order for them to practice in choir.

The original score is in nwc format, so I used nwc2xml to convert it into musicxml,  then I  tried to load the musicxml file into musescore and print the pdf. The pdf generated from musescore is  ok, but It has limited control on the layout.  So I turn to lilypond.  I used muxiscml2ly (version 2.16.2) to convert to lilypond file. It works great, the quality of the final pdf definitely better than the pdf generated from musescore.  but I found couple engraving issue, I want to see if you can help. I attached musicxml file, lilypond file and pdf file for your reference.

First,  I found hyphens are engraved for 3 times. see the 3 hythons between "He’ll" and "forgive" and also lyrics of measure 11 and measure 12.  this seems to be my major issue so far.

Second, This could be muxiscml2ly convertion issue, see "Duet Gently" and "Quartet" are printed for 3 times. I checked  the generated lilypond file, looks like extra voices are added. I was able to fix this by remove following lines from lilypond file.

                \context Voice = "PartPOneVoiceOne" { \voiceOne \PartPOneVoiceOne }
                \new Lyrics \lyricsto "PartPOneVoiceOne" \PartPOneVoiceOneLyricsOne
                \new Lyrics \lyricsto "PartPOneVoiceOne" \PartPOneVoiceOneLyricsTwo
                \new Lyrics \lyricsto "PartPOneVoiceOne" \PartPOneVoiceOneLyricsThree

                \context Voice = "PartPOneVoiceTwo" { \voiceThree \PartPOneVoiceTwo }
                \context Voice = "PartPTwoVoiceTwo" { \voiceThree \PartPTwoVoiceTwo }

Thanks
Jun 



_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

Attachment: Though Your Sins Be as Scarlet.pdf
Description: Adobe PDF document

Attachment: Though Your Sins Be as Scarlet.nwctxt
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]