This is because Lilypond looks for the context where graceSettings was set;
since MIDI doesn't use graceSettings, no context is found.
A workaround is to add
\set Score.graceSettings = #'()
before your code.
Han-Wen: A simple short-term fix is to add
graceSettings = #'()
to the Score block of performer-init.ly
Iwbn if there were a nicer fix though.
On Sunday 17 July 2005 23.33, roland wrote:
> \version "2.4.6"
> \include "english.ly"
>
> \score {
> <<
> % you get the error if one (or both) of theese two lines is active
> AND the midi block is active
> #(add-grace-property 'Voice 'Slur 'direction 1)
> #(add-grace-property 'Voice 'Stem 'direction -1)
> \relative c'' {a b c d e}
> \\
> \relative c'{a b c d e}
> >>
>
> \midi {
> }
>
> \layout {
> }
> }
--
Erik Sandberg
Maintainer of the Lilypond bug CVS archive,
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lily-bugs/bugs/
http://lilypond.org/doc/v2.5/bugs/out/index.html
_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond