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.
\version "2.18.2"
\header { tagline = ##f }
\paper { #(set-paper-size "a6" 'landscape) }
\relative c'' {
  \time 2/4
  r8 a b c
  \repeat volta 2 {
    d e f g %................................
  }
  \alternative {
    { g f g g g, a b c }
    { g' f g g }
  }%................................
  g g g g g2 \fermata %% the rest of the music
  \bar "|."
}
\version "2.18.2"
\header { tagline = ##f }
\paper { #(set-paper-size "a6" 'landscape) }
\relative c'' {
  \time 2/4
  r8 a b c
  \repeat volta 2 {
    d e f g %................................
  }
  \alternative {
    { g2 g,8 a b c }
    { g'2 \fermata }
  }%................................
  \bar "|."
}
\version "2.18.2"
\header { tagline = ##f }
\paper { #(set-paper-size "a6" 'landscape) }
\relative c'' {
  \time 2/4
  r8 a b c
  \repeat volta 2 {
    d e f g g2 %................................
    \bar "|."
  }
  \alternative {
    { g,8 a b c }
    { }
  }%................................
}

Attachment: rpt1.pdf
Description: Adobe PDF document

Attachment: rpt2.pdf
Description: Adobe PDF document

Attachment: rpt3.pdf
Description: Adobe PDF document

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to