lilypond-user
[Top][All Lists]
Advanced

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

Re: Multiple Endings Problem


From: William Marchant
Subject: Re: Multiple Endings Problem
Date: Fri, 02 Jan 2015 11:13:52 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

The code suggested by Thomas Morley, using the "\once \set Staff...." line solves my problem. The bug, if it is one seems to lie in the fact that other code precedes my example code. I did not realise that my code would run correctly without the preceding code. An ossia would not suit me because I wanted the horizontal lines which designate which verses of the song the endings were to follow. Thanks for all the replies.
Bill

On 15-01-02 07:06 AM, Thomas Morley wrote:
2015-01-02 10:34 GMT+01:00 Hans Aberg <address@hidden>:
On 2 Jan 2015, at 02:36, William Marchant <address@hidden> wrote:

I am using the code below to set up two different endings for a song.  The code 
shown automatically puts
a Repeat Start bar line at the beginning of  of Bar 29.  I would like to 
suppress it but can only do so with a Tick Bar Line.  This looks a bit odd. No 
other Bar Line seems to work.  Is there a method for what I want to do?
Bill

\repeat volta 2 {bf'8~ bf a a g4( f)| } %Bar 29
  \alternative{ { c2 e4( g4) |f1 |  r2 r4 g8( f) \bar ":|."} %Bar 30 31  32
                {c2 e4( d' | c1) |c4( c bf) a( |
                 c4. bf8 a4 bf)} %Bar 33 34 35 36
  }
There may be a bug: with some bars added ahead, one should be able to use \bar "|", but it still 
typesets \bar ".|:". One can use \bar "", though.

The \bar ":|.” above is unnecessary. Also, if the \repeat volta does not 
encompass all music repeated, \unfoldRepeats will not expand MIDI correctly.


\version "2.19.15"

\language "english"

\relative c' {
c1
\once \set Staff.whichBar = #"|"
\repeat volta 2 {  bf'8~ bf a a g4( f)| } %Bar 29
   \alternative{ { c2 e4( g4) |f1 |  r2 r4 g8( f) } %Bar 30 31  32
                 {c2 e4( d' | c1) |c4( c bf) a( |
                  c4. bf8 a4 bf)} %Bar 33 34 35 36
   }
}

-Harm






reply via email to

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