lilypond-user
[Top][All Lists]
Advanced

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

Re: bracketed passages


From: Mats Bengtsson
Subject: Re: bracketed passages
Date: Mon, 25 Sep 2006 10:02:58 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060911 Red Hat/1.0.5-0.1.el4 SeaMonkey/1.0.5

After some hacking, I came up with the following solution:

\version "2.8.0"

#(define-markup-command (left-bracket layout props) ()
 "Draw left hand bracket"
 (let* ((th 0.1) ;; todo: take from GROB.
       (width (* 2.5 th)) ;; todo: take from GROB.
       (ext '(-2.8 . 2.8))) ;; todo: take line-count into account.
   (ly:bracket Y ext th width)))

leftBracket = {
\once \override BreathingSign #'text = #(make-left-bracket-markup)
\once \override BreathingSign #'Y-offset = ##f
 % Trick to print it after bar lines and time/key signatures
\once \override BreathingSign #'break-align-symbol = #'custos
\breathe
}

#(define-markup-command (right-bracket layout props) ()
 "Draw right hand bracket"
 (let* ((th 0.1) ;; todo: take from GROB.
       (width (* 2.5 th)) ;; todo: take from GROB.
       (ext '(-2.8 . 2.8))) ;; todo: take line-count into account.
   (ly:bracket Y ext th (- width))))

rightBracket = {
\once \override BreathingSign #'text = #(make-right-bracket-markup)
\once \override BreathingSign #'Y-offset = ##f
\breathe
}


\relative c'{
 c d e f | \leftBracket g f e d \rightBracket c d e f g1
}

\layout{ragged-right = ##t }

You can modify the thickness (the number after "th") vertical extent (the
pair of numbers after "ext") and the width of the bracket edges (currently
2.5 * th).

  /Mats

Monk Panteleimon wrote:
Dear Lilypond users,

I would like to place brackets around passages of music -- not around arpeggiated chords or notes in chords or anything like that, but a right-pointing bracket at the beginning of a passage, spanning the whole staff or system, and likewise a left-pointing one at the end of the passage. This is to indicate that the passage in question ( a long melisma called a "fita") can be either sung or omitted at the discretion of a chanter or director. There is a not-very-attractive example of this kind of thing at the end of the 7th system in the piece of music posted here:

http://www.rocmconference.org/music/V4-12_Lord-I-have-cried_Both-now.pdf

Whoever engraved this piece in the early 20th c. used parentheses, but I would rather used something that looks close to a SystemStartBracket, but maybe thinner, and of course reversible for the close of the fita. * I have already tried doing this with markups, * using both parentheses and brackets. The problem with this method (besides all the trial-and-error tweaking of sizes and offsets) is that by the time the things are big enough to embrace the system, they are awfully fat and unsightly. Any suggestions will be greatly appreciated.

Fr. P


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

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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