On Mon, Oct 31, 2011 at 12:54:12PM -0200, luis jure wrote:
> 
> on 2011-10-31 at 13:18 Graham Percival wrote:
> 
> >Why not use a grid?  It's in the Editorial chapter of Notation.
> 
> from the description ("Vertical lines can be drawn between staves
> synchronized with the notes") and the examples, it's not obvious to me how
> i could get anything remotely similar to what i want (see image). 

well, of course you'd need to change the callback or stencil for
the grid lines.  But you can definitely replace the lines with
dots if you're willing to spend some time with scheme.

here's another example.

- Graham
\version "2.11.38"
%\include "../ly-preamble.ly"
%% sets of grid
\layout {
  \context { \Score
    proportionalNotationDuration = #(ly:make-moment 1 16)
    \override SpacingSpanner #'strict-note-spacing = ##t
  }
}

\layout {
 \context {
   \RhythmicStaff
   \consists "Grid_point_engraver"
   gridInterval = #(ly:make-moment 1 8)
   \override GridPoint #'Y-offset = #-2
 }
}

\new Score
\with {
 \consists "Grid_line_span_engraver"
 \override NoteColumn #'X-offset = #-0.5
}
\new ChoirStaff <<
\new RhythmicStaff {
  \set Staff.instrumentName = "music"
  c4 r8 c8 r4 r8 c8
  c8 r4 c8 r4. c8
%\bar "||"
}
\new RhythmicStaff {
  \set Staff.instrumentName = "time"
  \override Staff.InstrumentName #'Y-offset = #-0.8
%% hides staff and notes so that only the grid lines are visible
   \override NoteHead #'transparent = ##t
   \override NoteHead #'Y-offset = #-2.5
   \override NoteHead #'no-ledgers = ##t
   \override Stem #'stencil = ##f
   \override Beam #'stencil = ##f
   \override Staff.BarLine #'stencil = ##f
   \override Staff.StaffSymbol #'line-count = #0
   \override Staff.TimeSignature #'stencil = ##f
   \override Staff.Clef #'stencil = ##f

% you have to put 'dummy' notes here to force regular grid
% spacing...
  \repeat unfold 8 {
    \once \override Score.GridLine #'thickness = #5.0
    c8
    \once \override Score.GridLine #'thickness = #1.0
    c8 
   }
 }
  \addlyrics{
    \override StanzaNumber #'font-series = #'normal
    \override StanzaNumber #'padding = #4.2
    \set stanza = "events"
"*" " " "*" "*" "*" " " "*" "*"
"*" "*" " " "*" "*" " " " " "*"
  }
>>

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

Reply via email to