On Sun, 17 Feb 2008 06:07:14 -0800
"Jay Hamilton" <[EMAIL PROTECTED]> 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


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to