Re: Alternative bars in the middle of measure

2016-09-09 Thread David Wright
On Wed 07 Sep 2016 at 01:16:45 (+0200), Sven Axelsson wrote: > On 7 September 2016 at 00:56, David Wright 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-

Re: Alternative bars in the middle of measure

2016-09-06 Thread Sven Axelsson
On 7 September 2016 at 00:56, David Wright 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 \overr

Re: Alternative bars in the middle of measure

2016-09-06 Thread David Wright
On Tue 06 Sep 2016 at 23:40:40 (+0200), Sven Axelsson wrote: > On 6 September 2016 at 21:24, David Wright > 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 loca

Re: Alternative bars in the middle of measure

2016-09-06 Thread David Wright
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.re

Re: Alternative bars in the middle of measure

2016-09-06 Thread Pierre Perol-Schneider
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-pai

Re: Alternative bars in the middle of measure

2016-09-06 Thread David Wright
On Tue 06 Sep 2016 at 18:36:46 (+0200), Sven Axelsson wrote: > On 6 September 2016 at 18:27, Pierre Perol-Schneider > wrote: > > try to put 'number instead of 'text in your code: > > > > altBracket = #(define-music-function (parser location tag) (string?) > > #{ \set Score.repeatCommands = #(li

Re: Alternative bars in the middle of measure

2016-09-06 Thread Pierre Perol-Schneider
With a double bar ? ... music \altBracket "1." music \bar "||" \altBracket "2." music \altBracketEnd 2016-09-06 18:36 GMT+02:00 Sven Axelsson : > On 6 September 2016 at 18:27, Pierre Perol-Schneider < > pierre.schneider.pa...@gmail.com> wrote: > >> Hi Sven, >> >> try to put 'number instead of '

Re: Alternative bars in the middle of measure

2016-09-06 Thread Sven Axelsson
On 6 September 2016 at 18:27, Pierre Perol-Schneider < pierre.schneider.pa...@gmail.com> wrote: > Hi Sven, > > try to put 'number instead of 'text in your code: > > altBracket = #(define-music-function (parser location tag) (string?) > #{ \set Score.repeatCommands = #(list (list 'volta (markup #

Re: Alternative bars in the middle of measure

2016-09-06 Thread Pierre Perol-Schneider
Hi Sven, try to put 'number instead of 'text in your code: altBracket = #(define-music-function (parser location tag) (string?) #{ \set Score.repeatCommands = #(list (list 'volta (markup #:number tag))) #}) Cheers, Pierre 2016-09-06 17:24 GMT+02:00 Sven Axelsson : > Hello Lilyponders! > > Fo

Alternative bars in the middle of measure

2016-09-06 Thread Sven Axelsson
Hello Lilyponders! 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: % Used when substituting a single bar or just a few notes to show alternative