lilypond-user
[Top][All Lists]
Advanced

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

Re: Alternative bars in the middle of measure


From: David Wright
Subject: Re: Alternative bars in the middle of measure
Date: Tue, 6 Sep 2016 17:56:18 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue 06 Sep 2016 at 23:40:40 (+0200), Sven Axelsson wrote:
> On 6 September 2016 at 21:24, David Wright <address@hidden>
> wrote:
> 
> > On Tue 06 Sep 2016 at 20:29:46 (+0200), Pierre Perol-Schneider wrote:
> > > Or even:
> > >
> > > \version "2.18.2"
> > >
> > > altBracket = #(define-music-function (parser location tag) (string?)
> > >   #{ \set Score.repeatCommands = #(list (list 'volta (markup #:number
> > > tag))) #})
> > >
> > > altBracketEnd = { \set Score.repeatCommands = #'((volta #f)) }
> > >
> > > {
> > >   c'1
> > >   \once\override Score.VoltaBracket.shorten-pair = #'(0 . 1)
> > >   \altBracket "1."
> > >   c'
> > >   \altBracket "2."
> > >   c'
> > >   \altBracketEnd
> > > }
> >
> > OK, that's an example I can run. But I don't see what the issue is
> > that that solves. Isn't that just a conventional repeat without
> > an opening : (quite usual) and without a closing :| (less so).
> >
> > > > For the kind of music I mostly typeset, it is common to have
> > alternative
> > > > bars or even alternative notes in the middle of a measure. At the
> > moment I
> > > > handle this by setting score.repeatCommands like so:
> >
> > It would be nice to see a screenshot of "this kind" of music.
> > I'm not sure the example that I posted is at all appropriate.
> >
> 
> 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?

Cheers,
David.



reply via email to

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