lilypond-user
[Top][All Lists]
Advanced

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

Re: Repeat Volta Bar Types


From: Thomas Morley
Subject: Re: Repeat Volta Bar Types
Date: Tue, 11 Nov 2014 23:50:40 +0100

2014-11-11 23:28 GMT+01:00 Jim Long <address@hidden>:
> On Tue, Nov 11, 2014 at 11:18:55PM +0100, Thomas Morley wrote:
>> 2014-11-11 22:31 GMT+01:00 Chris Crossen <address@hidden>:
>> >
>> > On Nov 11, 2014, at 2:02 PM, Jim Long <address@hidden> wrote:
>> >
>> >> On Tue, Nov 11, 2014 at 01:39:23PM -0700, Chris Crossen wrote:
>> >>> Is it possible to get different repeat bar images when using \repeat 
>> >>> volta ?
>
>> And we have context-properties for this:
>>
>> \version "2.19.3"
>>
>> \layout {
>>   \context {
>>     \Score
>>     startRepeatType = #"||"
>>     endRepeatType = #"||"
>>     %% not needed in the minimal example
>>     %doubleRepeatType = #"||"
>>   }
>> }
>
>
> Thanks, Harm.  But that still doesn't work in the case where the
> volta is at the beginning of the piece, and the engraver wishes
> an explicit bar line.
>
> Lily by default doesn't engrave an open volta at the start of a
> piece, or at a double-barline.  I don't know how many others do,
> but I, for one, often override this.
>
> Both of these cases fail:
>
> \version "2.19.3"
>
> \layout {
>   \context {
>     \Score
>     startRepeatType = #"||"
>     endRepeatType = #"||"
>     %% not needed in the minimal example
>     %doubleRepeatType = #"||"
>   }
> }
>
> \score {
>   \new Staff {
> %    c'1
>     \bar "||"
>     \repeat volta 2 { c'1 c'1 }
>   }
> }
>
> \score {
>   \new Staff {
> %    c'1
>     \bar ".|:"
>     \repeat volta 2 { c'1 c'1 }
>   }
> }
>
>
>

(Sorry for the last empty mail, misclicked.)

It's because \bar "||" will not print anything at line-begin.

Though consider the following:

\version "2.19.13"

\new Staff {
  \bar ".|:" \repeat volta 2 { c'1 c'1 }
}

#(define-bar-line "||-r" "||" "||" "||")

\score {
  \new Staff {
    \bar "||-r"
    \repeat volta 2 { c'1 c'1 }
  }

  \layout {
    \context {
      \Score
      startRepeatType = #"||-r"
      endRepeatType = #"||-r"
      %% not needed in the minimal example
      %doubleRepeatType = #"||-r"
    }
  }
}

Cheers,
  Harm



reply via email to

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