lilypond-user
[Top][All Lists]
Advanced

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

Re: Analysis Brackets


From: Mats Bengtsson
Subject: Re: Analysis Brackets
Date: Mon, 12 Feb 2007 22:51:10 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20061113 Debian/1.7.8-1sarge8

Trevor Bača wrote:


Hi Matt,

Actually, you can stick an override in the note entry of the music
itself if you want to.

In fact, there are three override locations. All three override
locations are equivalent:

1. In a \context block (which lives within the a \layout block)
2. In a \with block (which follows context instantiation immediately)
3. In the note entry of the actual music


1. Here's an override in a \context block, as before:

    \score {
      \relative c'' {
        c4\startGroup\startGroup
        c4\stopGroup
        c4\startGroup
        c4\stopGroup\stopGroup
      }
      \layout {
        \context {
          \Staff \consists "Horizontal_bracket_engraver"
          \override HorizontalBracket #'direction = #up
    }}}


2. Here's an override in a \with block:

\score {
  \new Staff \with {
     \consists "Horizontal_bracket_engraver"
     \override HorizontalBracket #'direction = #up
   } {
     \relative c'' {
        c4\startGroup\startGroup
        c4\stopGroup
        c4\startGroup
        c4\stopGroup\stopGroup
      }
  }
}


3. And here's an override in the note entry of the music itself:

\score {
  \new Staff \with {
     \consists "Horizontal_bracket_engraver"
  } {
     \override Staff.HorizontalBracket #'direction = #up
     \relative c'' {
        c4\startGroup\startGroup
        c4\stopGroup
        c4\startGroup
        c4\stopGroup\stopGroup
      }
  }
}


Gurus, are there any other override locations? Or just these three?

Well, you could also use \tweak and you have two variations of
alternative 1. - placing the \layout block outside or inside the \score
(hmm, if you have a \book block in your file, then you have three
possible levels for your \layout block).
Matthew, don't worry if you don't follow all the details here.

  /Mats




reply via email to

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