lilypond-user
[Top][All Lists]
Advanced

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

Re: Tie/slur bug in 2.9.11?


From: Nicolas Sceaux
Subject: Re: Tie/slur bug in 2.9.11?
Date: Mon, 24 Jul 2006 09:38:47 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

John Wiedenhoeft <address@hidden> 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




reply via email to

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