[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using Slurs in Scheme Music Functions
From: |
Nicolas Sceaux |
Subject: |
Re: Using Slurs in Scheme Music Functions |
Date: |
Sat, 16 Sep 2006 11:26:41 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) |
address@hidden writes:
> The code which generates the error - unexpected '(' - is as follows:
>
> altSlur = #(define-music-function (parser location e1 e2) (ly:music?
> ly:music?)
> #{
> <<
> { $e1 $e2 }
> \new Voice = "1" {
> \once \override Stem #'transparent = ##t {
> $e1
> \slurDotted
> ( $e2 )
> \slurSolid
> }
> }
> >>
> #}
> )
You can write a '(' only after a literal note, not after a variable:
"\myVariable (" ==> parse error
You'll have to manually build the music expression: try using
\displayMusic to find out what to do (some examples are described in the
manual).
nicolas