lilypond-user
[Top][All Lists]
Advanced

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

Manual volta placement and invisible barline kills previous barline


From: Philip Thomas
Subject: Manual volta placement and invisible barline kills previous barline
Date: Mon, 21 May 2012 12:48:23 +0200

Hi fellow-users,

 

I don’t know whether I have one joint problem or two separate ones. My apologies for running them together in the same post if they are in reality separate issues.

 

I’m putting together a vocal (choir) score in the key of G major which has five repeated sections. I tried input using automatic repeats, but getting that correctly coordinated between both music and the lyrics defeated me (volta repeats starting in the middle of hyphenated words, etc.), so I opted to insert manual volta brackets. That makes the midi output wrong, of course, but that’s not a bother in this case.

 

The manual volta brackets work fine in most places in the score, but there is one point where it is critical to the score layout for a volta bracket to start at the beginning of the line. I found that the volta bracket starts too far left and gets forced into the sky by the F sharp in the key signature. (See Example A in the mock-up input code below.)

 

Aha, I thought: try adding an invisible barline at the beginning of bar 5. That works fine to position the volta bracket correctly, but it also makes the barline at the end of bar 4 invisible also, even when I add a manual single barline at the end of bar 4. (See Example B below.)

 

If anyone can help me (a) to solve my problem, but also, hopefully, (b) to understand what is going wrong with the solution I tried, I would be very grateful.

 

Cheers, Philip

_______________________________________________

 

% PROBLEM WITH MANUAL VOLTA PLACEMENT AND INVISIBLE BARLINE

 

\version "2.14.2"

 

% DEFINE volta-related variables for use in score:

startVoltaOne = \set Score.repeatCommands = #'((volta "1."))

startVoltaTwo = \set Score.repeatCommands = #'((volta "2."))

endVolta = \set Score.repeatCommands = #'((volta #f))

 

\markup { \column {

  "EXAMPLE A – Volta bracket in bar 5 is badly positioned:"

  \null

} }

 

\score { \relative c' {

  \clef "treble"

  \key g \major

  \numericTimeSignature \time 4/4

  c4 c4 c4 c4 | c4 c4 c4 c4 | c4 c4 c4 c4 |                        %1-3

  c4 c4 c4 c4 | \break                                               %4

  \startVoltaOne c4 c4 c4 c4 \endVolta \bar ":|" |                   %5

  \startVoltaTwo c4 c4 c4 c4 \endVolta |                             %6

  c4 c4 c4 c4 | c4 c4 c4 c4 \bar "|."                              %7-8

} }

 

\markup { \column {

  "EXAMPLE B – Invisible barline inserted at beginning of bar 5 correctly positions volta bracket,"

  "but cruelly kills off barline at the end of bar 4:"

  \null

} }

 

\score { \relative c' {

  \clef "treble"

  \key g \major

  \numericTimeSignature \time 4/4

  c4 c4 c4 c4 | c4 c4 c4 c4 | c4 c4 c4 c4 |                        %1-3

  c4 c4 c4 c4 \bar "|" | \break                                      %4

  \startVoltaOne \bar "" c4 c4 c4 c4 \endVolta \bar ":|" |           %5

  \startVoltaTwo c4 c4 c4 c4 \endVolta |                             %6

  c4 c4 c4 c4 | c4 c4 c4 c4 \bar "|."                              %7-8

} }

 

 

_______________________________________________

 

 


reply via email to

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