lilypond-user
[Top][All Lists]
Advanced

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

Re: Holes in spanners for tall notes


From: Caagr98
Subject: Re: Holes in spanners for tall notes
Date: Mon, 1 Jan 2018 20:33:31 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

That works great, thanks! I need to manually override Y-offset, but that's fine.

I also made this function to add holes in the bracket (requires setting the 
bracket's layer to -1):

whiteout =
#(define-event-function (x y) (number-pair? number-pair?)
   #{
     \tweak layer #0
     \tweak Y-offset #0
     \tweak outside-staff-priority ##f
     -\markup {
       \with-dimensions #'(0 . 0) #'(0 . 0)
       \with-color #white
       \filled-box #x #y #0
     }
   #})


On 01/01/18 19:36, Trevor wrote:
> 
> 
> "Caagr98" <address@hidden> wrote 01/01/2018 18:17:37
> 
>> \repeat volta 2 {R1}
>> \alternative {
>>  {a4 a a a a'''' a a a}
>>  {R1}
>> }
>>
>> In this example, the volta is moved very far up because of that one note. 
>> This is very ugly IMO. Is there any way to insert a hole in the line and 
>> have the note stick up over the volta?
> Yes; this override prevents the spanner from taking part in the
> outside staff ordering:
> 
> \version "2.19.80"
> {
>   \override Score.VoltaBracketSpanner.outside-staff-priority=##f
>   \repeat volta 2 {R1}
>   \alternative {
>     {a4 a a a a'''' a a a}
>     {R1}
>   }
> }
> 
> Trevor
> 



reply via email to

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