I just tried your example with version 2.8 and it compiled
without problems, so it clearly looks like a bug in version
2.9.16. Therefore, I send a copy to bug-lilypond.
/Mats
Simon Dahlbacka wrote:
I sent a mail to
bug-lilypond regarding unhelpful error messages in \version 2.9.16
(winxp/mingw)
The included snippet produces these kinds of errors, but still
produces more or less the intended output.
Is this a bug or have I screwed up somehow?
/Simon
PS. (the \sourcefilename is just for debugging purposes..)
Output:
D:\Development\Scores\>d:\LilyPond\usr\bin\lilypond.exe test.ly
<http://test.ly>
GNU LilyPond 2.9.16
Processing `test.ly'
Parsing...
Renaming input to: `foo'
<string>:0:0: error: syntax error, unexpected $undefined, expecting '='
(position unknown)
Renaming input to: `bar'
Renaming input to: `baz'
<string>:2:2: error: syntax error, unexpected $end, expecting '='
}
Renaming input to: `burp'
Interpreting music... [6]
Preprocessing graphical objects...
Calculating line breaks... [3][6][7]
Drawing systems...
Calculating page breaks...
Layout output to `test.ps'...
Converting to `test.pdf'...
% Begin test.ly <http://test.ly>
\version "2.9.16"
\include " svenska.ly <http://svenska.ly>"
pattern = #(define-music-function (parser location short long)
(ly:music? ly:music?)
#{
$short $short $short $short $long
#})
\sourcefilename "foo"
fluteInstrumental = \relative c'' {
\pattern ess8 f2 |
\pattern ess8 ass2 |
\pattern ess8 { b'4. f8 } |
f4 f, g8 ess'4 dess8 |
c1 | r1
}
\sourcefilename "bar"
clarinetInstrumental = \relative c'' {
\pattern d8 f2 |
\pattern d8 g2 |
\pattern d8 { a'4. g8 } |
g4 g, a8 d4 c8 |
b1 | r1
}
harmoniesInstrumental = \chordmode {
ass2 dess2:maj9 |
ass2 dess2:maj7 |
ass2 ess2/ass |
ess4/g ess4 ess2:7 |
}
\sourcefilename "baz"
pianoRHInstrumental = \relative c'' {
\pattern <c ess c'>8 <ess f ass ess'>2 |
\pattern <c ess c'>8 <f ass f'>2 |
\pattern <c ess c'>8 { <g' b ess g>4.\< <f f'>8\! } |
<f b f'>4 <f, f'>4\> <g g'>8 <c c'>4 <b b'>8\! |
<ass c ess ass>1 ~ |
<ass c ess ass>1 \bar "||"
}
\sourcefilename "burp"
lhPattern = { << {r8 ess ass c } \\ { ass,2 <dess f c'>2 } >> }
pianoLHInstrumental = \relative c {
\lhPattern
\lhPattern
<< { r8 ess'='8 ass c, } \\ { ass2 <ass, ess' b'>2 } >> |
<< { <b'= dess f>2 } \\ { g4 ess <ess b' dess>2 } >> |
<ass, ass'>1 ~ |
<ass ass'>1
}
staffFluteInstrumental = \new Staff {
\time 4/4
\key ass \major
\clef treble
\fluteInstrumental
}
staffClarinetInBbInstrumental = \new Staff {
\transposition b'
\key b \major
\clef treble
\clarinetInstrumental
}
staffPianoInstrumental = \new PianoStaff {
<<
\context Staff = "RH" { % Right hand
\clef treble
\key ass \major
\pianoRHInstrumental
}
\context Staff = "LH" { % Left hand
\clef bass
\key ass \major
\pianoLHInstrumental
}
>>
}
\score {
<<
\staffFluteInstrumental
\staffClarinetInBbInstrumental
\staffPianoInstrumental
>>
}
% End test.ly <http://test.ly>
------------------------------------------------------------------------
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user