lilypond-user
[Top][All Lists]
Advanced

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

Re: Grid lines, GDP- need some help


From: Mark Knoop
Subject: Re: Grid lines, GDP- need some help
Date: Thu, 21 Feb 2008 10:12:33 +0000
User-agent: Thunderbird 2.0.0.9 (X11/20071115)

On Sun, 17 Feb 2008 06:07:14 -0800
"Jay Hamilton" <address@hidden> wrote:

I'm working on section 1.7 for GDP, and nearly done with 1st pass.
I've come to the grid lines section 1.7.2.2 and need help
understanding the code so I can explain it because there's too much
there that is not explained.

Does anyone have an example with
%here's why this is here
annotations that you could send me?

How's this:

\layout {
  \context {
    \Staff
    \consists "Grid_point_engraver" %% sets of grid
    % this sets the grid interval to 1 quarternote (crotchet)
    gridInterval = #(ly:make-moment 1 4)
  }
}

\new Score \with {
  \consists "Grid_line_span_engraver"
  %% centers grid lines  horizontally below note heads
  % by default the grid lines are aligned with the
  % left side of the notehead
  % this moves them to the right half a staff space
  \override NoteColumn #'X-offset = #-0.5
}

\new ChoirStaff <<
  \new Staff {
    \stemUp
    \relative {
      c'4. d8 e8 f g4
    }
  }
  \new Staff {
    %% centers grid lines  vertically
    % by default the grid lines join the middle line of each staff
    % this moves them up one staff space
    \override Score.GridLine #'extra-offset = #'( 0.0 . 1.0 )
    \stemDown
    \clef bass
    \relative c {
      c4  g'  f  e
    }
  }
>>
--
Mark Knoop




reply via email to

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