lilypond-user
[Top][All Lists]
Advanced

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

Re: What is the problem with "\relative"? (Was: Do we really offer the f


From: Davide Liessi
Subject: Re: What is the problem with "\relative"? (Was: Do we really offer the future?)
Date: Sun, 26 Apr 2015 11:56:56 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

Dear Johan,

Il 26/04/15 09.58, Johan Vromans ha scritto:
I've always considered \relative as an operation that should be applied as
close to the actual notes as possible. This gives the least suprises, if
any.

   \relative c'' {
     \new PianoStaff <<
       \new Staff { \time 2/4 c4 e | g g, | }
       \new Staff { \clef "bass" c,,4 c' | e c | }
     >>
   }

This is, indeed, asking for problems...

   \new PianoStaff <<
     \new Staff { \time 2/4    \relative c'' { c4 e | g g, } | }
     \new Staff { \clef "bass" \relative c,, { c4 c' | e c } | }
   >>

Did you invert your examples?
Actually \relative is applied closer to the notes in your second example, which I think is clearer. Indeed in my files I use \relative like in your second example and I always advise people to do the same.

Best wishes.
Davide



reply via email to

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