lilypond-user
[Top][All Lists]
Advanced

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

Re: Shapenote Repeats and Breaks


From: Leland Kusmer
Subject: Re: Shapenote Repeats and Breaks
Date: Tue, 23 Mar 2010 11:36:44 -0400

Tim,

All you need to do is include that code somewhere in your file, and
then use \override in your \global section to activate the code that
Robin wrote. I've attached a file including all the code that I
currently have for Sacred Harp-style repeats.

I'm still working on other details of Sacred Harp-style engraving, but
these repeats go a long way towards making your music look
traditional.

-Leland

On Tue, Mar 23, 2010 at 11:03 AM, Tim Slattery <address@hidden> wrote:
> "Robin Bannister" <address@hidden> wrote:
>
>>Leland Kusmer wrote:
>>> Is there a way to do this?
>>
>>Lilypond does this according to bar-glyph-alist,
>>by calling calc-glyph-name from within the barline print routine.
>>But when you override the BarLine stencil like this,
>>you are bypassing the barline print routine.
>>
>>So try something (which calls calc-glyph-name) like
>>
>>
>>#(define (with-shapenote-repeats grob)
>>  (let ((g-n (ly:grob-property grob 'glyph-name)))
>>    (cond
>>      ((string=? g-n "|:") (dotFn grob))
>>      ((string=? g-n ":|") (barDotFn grob))
>>      (else (ly:bar-line::print grob)))))
>>
>>And maybe the corresponding override doesn't need the \once ?
>>
>>  \override Staff.BarLine #'stencil = #with-shapenote-repeats
>
> I do shape note music from time to time also, and I'd love to use this
> to get my output to look like the Sacred Harp book. It's LISP code
> right? (I know, it's Scheme which is a LISP descendant of some sort.)
>
> My knowledge of Lilypond does not include LISP/Scheme. How exactly
> would I use this?
>
> --
> Tim Slattery
> address@hidden
> http://members.cox.net/slatteryt
>
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>

Attachment: sacredHarpRepeats.ly
Description: Binary data


reply via email to

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