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 <haber...@telia.com>:
On 2 Jan 2015, at 02:36, William Marchant <wmarch...@eastlink.ca> 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
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user