On Wed 07 Sep 2016 at 01:16:45 (+0200), Sven Axelsson wrote:
> On 7 September 2016 at 00:56, David Wright <lily...@lionunicorn.co.uk> wrote:
> > On Tue 06 Sep 2016 at 23:40:40 (+0200), Sven Axelsson wrote:
> > > Thanks everyone. I tweaked my definition to use
> > >
> > > \allowVoltaHook "|"
> > >
> > > altBracket = #(define-music-function (parser location tag) (string?)
> > > #{
> > >     \once \override Score.VoltaBracket.shorten-pair = #'(0.3 . 0.3)
> > >     \set Score.repeatCommands = #(list (list 'volta (markup #:number
> > tag)))
> > > #})
> > >
> > > which gives me precisely what I want. Here is an example using both
> > \repeat
> > > ... \alternative endings and \altBracket alternatives.
> >
> > OK, that's much better, and I can see you were wanting what I thought
> > you were. (I worried when I reread and saw "middle of a measure"
> > rather than "middle of a piece".)
> >
> > However, I would still have misgivings about not starting the first
> > bracket at the start of bar 8, and duplicating the half-bar.
> >
> > One minor detail: the 9th bar's volta (the 2nd time bar) shouldn't
> > have a hook, because the music runs on from that crochet and, as
> > significant, there's no jump from any earlier to the end of that
> > crochet. This is discussed in
> >
> > http://lists.gnu.org/archive/html/lilypond-user/2015-10/msg00113.html
> >
> > Is \allowVoltaHook as blunt an instrument as it was last year?
> 
> 
> Yes, apparently so. Using alternatives for half bars as in bar 8 is
> relatively common in this genre, so I will stick with that. Your comment
> re. bar 9 would be fixed by ending that bar with a double line as I should
> have done in the first place.

My comment wasn't about the barline, but about the ┓ hook on the volta
bracket at the end of the second line, which shouldn't be there. The
attached shows why. Getting some hooks but not others was/is tricky as
\allowVoltaHook was blunt (and, I think, still).

Cheers,
David.
{
  \time 6/8
  \bar ".|:"
  \repeat volta 2 {
    \repeat unfold 24 a'8 \break
    \repeat unfold 18 a'8
    a'8 a'8 a'8
  }
  \alternative {
    {
      a'4.
    }
    {
      a'4 \bar "" \break
    }
  }
  a'8
  \repeat unfold 30 a'8
}

{
  \time 6/8
  \bar ".|:"
  \repeat volta 2 {
    \repeat unfold 24 a'8 \break
    \repeat unfold 18 a'8
    a'8 a'8 a'8
  }
  \alternative {
    {
      a'4.
    }
    {
      a'4 \bar "" \break
    }
  }
  \repeat volta 2 {
    \bar ".|:"
    a'8
    \repeat unfold 24 a'8 \break
    \repeat unfold 18 a'8
    a'8 a'8 a'8
  }
  \alternative {
    {
      a'4
    } {
      a'4.
    }
  }
  \bar "|."
}

Attachment: repmid.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