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


From: Johan Vromans
Subject: Re: What is the problem with "\relative"? (Was: Do we really offer the future?)
Date: Sun, 26 Apr 2015 09:58:33 +0200

On Sun, 26 Apr 2015 05:52:04 +0000 (UTC)
Keith OHara <address@hidden> wrote:

> I wish the manual did not use the implicit \relative c'' {} 
> (sometimes \relative c' {} ) enclosing the examples.  As soon as
> the input gets complicated, \relative becomes difficult to figure out.

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 } | }
  >>

-- Johan



reply via email to

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