lilypond-user
[Top][All Lists]
Advanced

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

Re: Introduction Bracket glyphs


From: Pierre Perol-Schneider
Subject: Re: Introduction Bracket glyphs
Date: Sun, 19 Jun 2016 11:41:42 +0200

Hi Breanne,
Welcome to the list.

How about :

%%%%%%%%%%%%%
\version "2.18.2"

%% Bracket defs:
startBracket =
  -\tweak color #white
  -\tweak bound-details
            #`((left
                (text . ,#{
                  \markup
                  \with-dimensions #'(0 . 0) #'(0 . 0)
                  \with-color #black
                  \override #'(thickness . 1.5) {
                    \combine
                    \draw-line #'(1 . 0)
                    \draw-line #'(0 . -1.5)
                  }
                  #})
                (Y . 1.5)
                (attach-dir . -3))
               (right
                (text . ,#{
                  \markup
                  \with-dimensions #'(0 . 0) #'(0 . 0)
                  \with-color #black
                  \override #'(thickness . 1.5) {
                    \combine
                    \draw-line #'(-1 . 0)
                    \draw-line #'(0 . -1.5)
                  }
                  #})
                (Y . 1.5)
                (attach-dir . 3)))
  \startTextSpan

stopBracket = \stopTextSpan

%%% Test:
the-music = \transpose c c' {
  \clef G
  \time 3/4
  \key d\major
  \set doubleSlurs = ##t
  \tempo\markup\normal-text\concat {
    \italic "Solemnly" \hspace #.8
    \raise #.5 \smaller\note #"4" #1
    \hspace #.5 "=" \hspace #.3  "76-88"
  }
  \set Score.tempoWholesPerMinute = #(ly:make-moment 76/4)
  <d a>2\startBracket <d fis>4
  <fis a>2 <d fis>4
  <fis a>( <e g>) <d b>
  <cis e>2 r4 \stopBracket
  <cis e>2 <d fis>4
  <e g>2 <d fis>4
}

the-lyrics = \lyricmode {
   Je -- sus, once of hum -- ble birth,
   Now in glo -- ry
}

\score {
  \new Staff <<
    \new Voice = "Melody" \the-music
    \new Lyrics \lyricsto "Melody" \the-lyrics
  >>
  \layout {
    ragged-right = ##f
  }
  \midi{}
}

%%%%%

Cheers,
Pierre

2016-06-19 8:19 GMT+02:00 Breanne Szilagyi <address@hidden>:
Good Evening,

I am arranging a hymn for organ and need to indicate the recommended measures to use for an introduction.  I am looking for square brackets: the first bracket is the top and left sides of a square and the second bracket is the top and right sides. And I want to place them above the system.

Ex. https://www.lds.org/music/library/hymns/jesus-once-of-humble-birth?lang=eng
In the example, the introduction brackets enclose a few measures at the beginning of the song and then jump to the last few measures of the song.

I've searched through the Notation documentation sections that seem appropriate, and tried to do keyword searches but introduction, square, and bracket are all overloaded terms and I couldn't find a suitable substitute.  Thank you for helping a lilypond newbie.  (I'm using v2.18.2 but can switch to a higher version if needed.)

Thank you,
Breanne Szilagyi

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



reply via email to

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