lilypond-user
[Top][All Lists]
Advanced

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

Re: bar lines followed by barlines on a new line


From: Sam Domonkos
Subject: Re: bar lines followed by barlines on a new line
Date: Fri, 01 Oct 2010 11:13:00 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4

Thanks, this is exactly what I was trying to do. Sorry I slipped in a bagpipe lexicon. A part is just a subdivision of the whole tune. Generally one or two lines of music and for students printing this type of bar line helps them see the structure of the tune. Also this is pretty much the standard way of printing bagpipe music.

Thanks again,
--Sam

On 2010-10-01 09:45, Robin Bannister wrote:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#(define (my-calc-glyph-name grob)
 (let* ((glyph (ly:grob-property grob 'glyph))
   (dir (ly:item-break-dir grob)))
(if (and (string? glyph) (string=? glyph ".|") (= dir LEFT)) "|." ; as if bar-glyph-alist had (".|" . ("|." . ".|"))
     (bar-line::calc-glyph-name grob))))

\new Staff \with { \override BarLine #'glyph-name = #my-calc-glyph-name }
{
 \bar ".|"  b1 b1 b1 b1 b1 b1 b1 b1^"\bar \".|\"" \bar ".|" \break
 b1 b1 b1 b1 b1 b1 b1 b1^"\bar \"|.\"" \bar "|." \break
b1 b1 b1 b1^"\bar \".|\"" \bar ".|" b1 b1 \repeat volta 2 { b1 b1 } \break
 b1 b1 b1 b1 b1 b1 b1 b1 \bar ".|" \break
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




reply via email to

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