lilypond-user
[Top][All Lists]
Advanced

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

Re: repeat


From: David Wright
Subject: Re: repeat
Date: Thu, 11 Feb 2016 11:00:26 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu 11 Feb 2016 at 14:48:18 (+0100), BB wrote:
> That works, but the long note sequence has to be repeated - exactly
> that's what I would like to avoid.

I don't understand your complaint. In the attached (rpt1), the "d e f g"
bar is printed once but played twice, which is what you asked for.

However, your adding an explicit \bar "|." might indicate that the end
of the repeat is also the end of the music. Even in this case, I would
print the last bar twice (rpt2), once in the first-time bar and once
at the end, so that you don't have a \bar "|." at the beginning of your
first-time bar, which looks ugly and confusing (rpt3).

> \version "2.19.2"
> 
> \relative c'' {
>  \time 2/4
>  r8 a b c
>  \repeat volta 2 {
>    \repeat percent 10 { d e f g }
>    %d e f g %................................
>  }
>  \alternative {
>   { g, a b c }
>   {}
>  }
>     \repeat percent 10 { d e f g }
>   d e f g %................................ %% the rest of the music
>  \bar "|."
> }
> 
> With the repeats I tried to make clear the long repetition I want to avoid.

I think you may have misunderstood the example below.

> On 11.02.2016 13:16, Pierre Perol-Schneider wrote:
> >\version "2.19.2"
> >
> >\relative c'' {
> > \time 2/4
> > r8 a b c
> > \repeat volta 2 {
> >   d e f g %................................
> > }
> > \alternative {
> >  { g, a b c }
> >  {}
> > }%................................
> > g g g g %% the rest of the music
> > \bar "|."
> >}

Cheers,
David.

Attachment: rpt1.ly
Description: Text Data

Attachment: rpt2.ly
Description: Text Data

Attachment: rpt3.ly
Description: Text Data

Attachment: rpt1.pdf
Description: Adobe PDF document

Attachment: rpt2.pdf
Description: Adobe PDF document

Attachment: rpt3.pdf
Description: Adobe PDF document


reply via email to

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