John Wiedenhoeft <[EMAIL PROTECTED]> writes:
> When I try the following:
>
> \version "2.9.11"
>
> erga = {\once \override NoteHead #'style = #'diamond a}
> para = {< \parenthesize a>}
>
> {
> a ~ \erga ~ \erga
> a( \erga) \erga( a)
> a ~ \para ~ \para
> a( \para) \para( a)
> }
>
> I get:
>
> GNU LilyPond 2.9.11
> Processing `greg.ly'
> Parsing...
> greg.ly:7:10: error: syntax error, unexpected '~'
> a ~ \erga
> ~ \erga
> [other syntax errors]
This is not a bug, what you wrote is simply not valid LilyPond syntax,
as the message tells ("syntax error"). "(", ")" and "~" only applyes to
literal notes, which \erga and \para are not.
I suggest that you wrote instead:
erg = \once \override NoteHead #'style = #'diamond
%% unfortunately, you cannot simply write:
%% par = \parenthesize
%% see ly/music-functions-init.ly for the definition
%% of parenthesize.
par =
#(define-music-function (parser loc arg) (ly:music?)
"Tag @var{arg} to be parenthesized."
(set! (ly:music-property arg 'parenthesize) #t)
arg)
{
a ~ \erg a ~ \erg a
a( \erg a) \erg a( a)
a ~ \par a ~ \par a
a( \par a) \par a( a)
}
nicolas
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user