Am 08.08.2012 17:30, schrieb Gabriel Taubman:
Hi Ole,
Thanks for the help! That looks like it almost does the trick. If I add more bars though, then sometimes it wraps a measure strangely. See attached.

If I manually insert a \break, then that can fix it, but I was hoping to not need to manually insert breaks since this .ly files will be autogenerated. Do you have any ideas for how to get around that?

Hi Gabriel,

with the current bar line machanism, a workaround is a bit clumsy but doable.
See the attached file, I hope, it serves your needs.

Regards,

Marc
Thanks again!  I really appreciate the help.
Gabe

On Wed, Aug 8, 2012 at 10:48 AM, ole <m...@oleschmidt.info <mailto:m...@oleschmidt.info>> wrote:

    maybe this helps?

    ole

    [siehe angehängte Datei: stop&start_staff.ly
    <http://start_staff.ly>]   [siehe angehängte Datei: Screenshot
    2012-08-08 um 16.47.50.jpg]

    xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    www.oleschmidt.info <http://www.oleschmidt.info>
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    Am 08.08.2012 um 16:01 schrieb Gabe Taubman:

    > Hi Lilypond Folks!
    > I was wondering if anybody has tips for typesetting measures in
    the style of
    > Terry Riley's "In C" such as:
    > http://3.bp.blogspot.com/_tkm9v4opNG8/SxN7-
    >
    
mizljI/AAAAAAAADNI/uhvaeoUD0vY/s1600/Terry%20Riley%20In%20C%20full%20score.jpg
    >
    > I think I can use cadenza mode to have the arbitrary number of
    beats per
    > measure, but I'm not sure how to break the measures apart like that.
    >
    > Does anyone have any tips?
    >
    > Thanks!
    > Gabe
    >
    >
    > _______________________________________________
    > lilypond-user mailing list
    > lilypond-user@gnu.org <mailto:lilypond-user@gnu.org>
    > https://lists.gnu.org/mailman/listinfo/lilypond-user




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

#(define (dotted-line-break grob)
   (let ((dir (ly:item-break-dir grob)))

         (if (= dir CENTER)
            ":"
            #f)))

#(define (my-calc-glyph-name grob)
  (let ((glyph (ly:grob-property grob 'glyph)))

        (if (string=? glyph ":")
            (dotted-line-break grob)
            (bar-line::calc-glyph-name grob))))



\layout {
  \context {
    \Staff
    \remove "Time_signature_engraver"
  }
}

musick = \relative c' {
\override Staff.BarLine #'glyph-name = #my-calc-glyph-name
\stopStaff

s4

\startStaff

\set Timing.defaultBarType = ""
\bar ":"
\repeat unfold 3 { \stemDown \appoggiatura c8 \stemNeutral e4 }
\bar ":"
\stopStaff

s4

\startStaff
\bar ":"
\stemDown \appoggiatura c8 \stemNeutral e8 f e4
\bar ":"
\stopStaff

s4

\startStaff
\bar ":"
r8 e f[ e]
\bar ":"
\stopStaff

%s4
%\startStaff
%\bar ":"
%r1 e f g2 a b f1
%\bar ":"
%\stopStaff

s4
\startStaff
\bar ":"
r8 e f[ g]
\bar ":"
\stopStaff

s4

\startStaff
\bar ":"
e8 f g r
\bar ":"
\stopStaff

s4

\startStaff
\bar ":"
e8 f g r
\bar ":"
\stopStaff

s4

\startStaff
\bar ":"
e8 f g r
\bar ":"
\stopStaff
s4

\startStaff
\bar ":"
e8 f g r
\bar ":"
\stopStaff
s4

\startStaff
\bar ":"
e8 f g r
% at the end of the piece, revert the settings to
% enable the dotted bar line at the end of the line.
\revert Staff.BarLine #'glyph-name
\bar ":"
\stopStaff
}

\score { \musick }

\header {
  title = "2012-08-18 12:56:21 PM"
  tagline = ""  % removed
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to