lilypond-user
[Top][All Lists]
Advanced

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

Re: Nested volta brackets


From: Pierre Perol-Schneider
Subject: Re: Nested volta brackets
Date: Wed, 14 Jan 2015 23:02:09 +0100

Hi John,

As a first workaround :

\version "2.19.15"

#(allow-volta-hook "|")

\relative c'' {
    \key c \major \time 4/4

% Set details for later Text Spanner
\override TextSpanner #'(bound-details left text)
    = \markup { \small \bold Slower }
% Place dynamics above staff

% Place following Ottava Bracket below Text Spanners
    \repeat volta 2 {
          \set Score.measureLength = #(ly:make-moment 5 8)
          \once \override Staff.TextSpanner.outside-staff-priority = #650
          \once \override TextSpanner.bound-details.left.text =
            \markup\concat {
              \draw-line #'(0 . -2)
              \hspace #-.1
              \column {
                \draw-line #'(20 . 0)
                \line { \hspace #1 \raise #.7 "Second time only." }
              }
            }
          %\once \override TextSpanner.font-size = #-2
          \once \override TextSpanner.style = #'line
          \once \override TextSpanner.thickness = #1.5
          \once \override TextSpanner.bound-details.left.padding = #-1
          \once \override TextSpanner.bound-details.right.padding = #-3.2
          \once \override TextSpanner.bound-details.right.text = \markup \draw-line #'(0 . -2)

          a16.\startTextSpan g32 a16. f32 e8
          \set Score.repeatCommands = #'((volta "S."))
          c32 [ a16.]
          \once \hide Score.BarLine
          \once \hide Score.SpanBar
          \set Score.repeatCommands = #'((volta #f)(volta "D.") end-repeat)
          c32 [e16.]
          \set Score.measureLength = #(ly:make-moment 4/8)
          a,8 a'16. e32 f16. e32 c32 a16.\stopTextSpan         
          \set Score.repeatCommands = #'((volta #f))         
          b16.[ c32 d16. e32] f32 [ a16. e16. b32]
          c8 [a] a
        } %end repeat
} %end relative


HTH,
Pierre


2015-01-14 22:30 GMT+01:00 John McWilliam <address@hidden>:
I have a piece which has a complex repeat. The first time through the first
two bars are omitted. The second time the notes bracketed [S] are played.
This entire sequence is then played again, however, the second time the
notes bracketed [D] are played. In total the line is played four times in
different ways.

The snippet shows how this is done, however, I would like to replace the
text spanner with a volta bracket embracing the first two bars and with the
text "Lines 2 & 4 only" Is this possible?

Test.ly <http://lilypond.1069038.n5.nabble.com/file/n170488/Test.ly>



-----
John McWilliam
--
View this message in context: http://lilypond.1069038.n5.nabble.com/Nested-volta-brackets-tp170488.html
Sent from the User mailing list archive at Nabble.com.

_______________________________________________
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]