lilypond-user
[Top][All Lists]
Advanced

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

OttavaBracket right endpoint?


From: Trevor Bača
Subject: OttavaBracket right endpoint?
Date: Wed, 4 Oct 2017 18:54:02 -0500

Hi,

I’m interested in making the right endpoints of ottava brackets and trill spanners coincide.

QUESTION: in ottava-1.png (attached) I like where the trill spanner ends; is there a way to tell the ottava bracket to end at the same point?

Here’s the code that produces ottava-1.png:

\version "2.19.65"                                                              

\new Staff {                                                                    
    \ottava #1                                                                  
    c''4 \startTrillSpan                                                        
    d''                                                                         
    e''                                                                         
    f''                                                                         
    \ottava #0                                                                  
    \break                                                                      

    c'4 \stopTrillSpan                                                          
    d'                                                                          
    e'                                                                          
    f'                                                                          
}

Moving the lexical position of the close-ottava command (ottava-2.png) doesn’t work:

\version "2.19.65"                                                              

\new Staff {                                                                    
    \ottava #1                                                                  
    c''4 \startTrillSpan                                                        
    d''                                                                         
    e''                                                                         
    f''                                                                         
    \break                                                                      

    c'4 \stopTrillSpan                                                          
    \ottava #0                                                                  
    d'                                                                          
    e'                                                                          
    f'                                                                          
}

OttavaBracket seems not to implement the to-barline property (in the spanner-interface):

\version "2.19.65"

\new Staff {
    \override Staff.OttavaBracket.to-barline = ##t
    \ottava #1
    c''4 \startTrillSpan
    d''
    e''
    f''
    \ottava #0
    \break

    c'4 \stopTrillSpan
    d'
    e'
    f'
}

There’s also a (promising-sounding) connect-to-neighbor property in the horizontal-bracket-interface. But I can’t figure out how to override property, or whether OttavaBracket implements the property at all:

\version "2.19.65"

\new Staff {
    \override Staff.OttavaBracket.connect-to-neighbor = #'(#t . #t)
    \ottava #1
    c''4 \startTrillSpan
    d''
    e''
    f''
    \ottava #0
    \break

    c'4 \stopTrillSpan
    d'
    e'
    f'
}

Any solutions?

(Definitely not looking for a numeric hack to shorten-pair.)

Trevor.

--

Attachment: ottava-1.png
Description: PNG image

Attachment: ottava-2.png
Description: PNG image


reply via email to

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