2009/11/23 Alexander Kobel
<address@hidden>
Stefan Thomas wrote:
Dear community,
I have a problem with the addquote-command.
In the below quoted snippet it doesn't work and I don't know why.
Here is the example
\version "2.12.2"
oben = \new Staff \relative { c4 d e f g2 c g1 }
\addQuote "oben" { \oben }
unten = \new Staff { \quoteDuring "oben" {s1 } e'1 e'1 }
\score { << \oben
\unten
>> }
Hi, Stefan,
first of all, you need to put a hash symbol (#) in front of the string denoting the identifier after \quoteDuring.
(Uh. I withdraw. I think it is supposed to be there, but it also works without it. Interesting.)
([OT:] You really should use \relative with some octavation.)
Even then, quoting at the start of a piece is broken. IIRC, it has something to do with the quote being available only after the moment it was declared, but in this very case, it's already needed at the same point in time.
I can't find the bug report right now, so I don't know if there's someone working on this. As a workaround, you can quote the first note for yourself and add the quote later on:
oben = \relative c' { c4 d e f g2 c g1 }
\addQuote "oben" \oben
unten = \relative c' { c4 \quoteDuring #"oben" s2. e1 e1 }
\score {
<<
\new Staff \oben
\new Staff \unten
>>
}
Cheers,
Alexander