Menu

#4928 Add a a 'maximum' slope value to TupletBracket

Accepted
nobody
None
Enhancement
2016-09-27
2016-07-11
No

LilyPond's tuplet bracket algorithm seems to not have a specific maximum
slope for its brackets, and can produce things like this:

\version "2.19.37"

{
\tuplet 5/4 { <f'' c'''="">16 d'4 }
\tuplet 5/4 { <f'' d'''="">16 d'4 }
\tuplet 5/4 { <f'' e'''="">16 d'4 }
\tuplet 5/4 { <f'' f'''="">16 d'4 }
\tuplet 5/4 { <f'' g'''="">16 d'4 }
\tuplet 5/4 { <f'' a'''="">16 d'4 }
\tuplet 5/4 { <f'' b'''="">16 d'4 }
\tuplet 5/4 { <f'' c'''''="">16 d'4 }
}</f''></f''></f''></f''></f''></f''></f''></f''>

http://lilypond.1069038.n5.nabble.com/file/n192503/22.png

If there would be a maximum slope, the results could be something like this:

\version "2.19.37"

{
\once \override TupletBracket.positions = #'(6 . 4)
\tuplet 5/4 { <f'' c'''="">16 d'4 }
\once \override TupletBracket.positions = #'(6.5 . 4.5)
\tuplet 5/4 { <f'' d'''="">16 d'4 }
\once \override TupletBracket.positions = #'(7 . 5)
\tuplet 5/4 { <f'' e'''="">16 d'4 }
\once \override TupletBracket.positions = #'(7.5 . 5.5)
\tuplet 5/4 { <f'' f'''="">16 d'4 }
\once \override TupletBracket.positions = #'(8 . 6)
\tuplet 5/4 { <f'' g'''="">16 d'4 }
\once \override TupletBracket.positions = #'(8.5 . 6.5)
\tuplet 5/4 { <f'' a'''="">16 d'4 }
\once \override TupletBracket.positions = #'(9 . 7)
\tuplet 5/4 { <f'' b'''="">16 d'4 }
\once \override TupletBracket.positions = #'(13 . 11)
\tuplet 5/4 { <f'' c'''''="">16 d'4 }
}</f''></f''></f''></f''></f''></f''></f''></f''>

http://lilypond.1069038.n5.nabble.com/file/n192503/21.png

Elaine Gould writes in her Behind Bars (pp. 196--197):

"Angle of brackets
Groups without beams
Brackets may slant in the direction of the tuplet's outer pitches
The angle of slant should not be too acute; match an equivalent beam slant
Alternatively, brackets may remain horizontal. For a line of undulating
groups this avoids the visual distraction of many sloping brackets"

So what do you think about adding a maximum slope value to TupletBracket?
Maybe something similar to the slope of beams?

Originally discussed here:
http://lilypond.1069038.n5.nabble.com/tuplet-bracket-slope-td192294.html

Cheers,
Gilberto

Discussion

  • Anonymous

    Anonymous - 2016-07-11
     
  • Anonymous

    Anonymous - 2016-07-11

    I noticed that the link for the second
    image is broken for some reason. This link here work fine:
    http://lilypond.1069038.n5.nabble.com/file/n192294/21.png

    Could you please update the ticket at LilyIssues?

    Cheers!
    Gilberto

     
  • Trevor Daniels

    Trevor Daniels - 2016-09-27
    • status: New --> Accepted
     

Log in to post a comment.