lilypond-user
[Top][All Lists]
Advanced

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

Re: FW: Putting horizontal brackets at a fixed y-position


From: Sven Axelsson
Subject: Re: FW: Putting horizontal brackets at a fixed y-position
Date: Tue, 27 Sep 2005 10:51:39 +0200

Han-Wen Nienhuys [mailto:address@hidden] wrote:
> address@hidden wrote:
> > Is there already a non-hackish way of putting horizontal brackets (voltas and
> > analysis brackets) at a *fixed* y-position unaffected by the bracketed music?
> > If not I'm willing to sponsor such a feature that for both volta brackets and
> > analysis brackets lets me do, for instance
> >
> > \override HorizontalBracket #'fixed-position = #'(2 . 3) % use octave and note pos
> >
> > or perhaps using the padding property together with a flag. Now the bracket will
> > all be put at that position, even if the music overlaps them.
> >
> > How about that? And I actually consider it a bug that Lilypond doesn't do this
> > as default.
> >
>
> try this
>
>
> \layout {
>   \context {
>     \Staff \consists "Horizontal_bracket_engraver"
>   }
>   raggedright = ##t
> }
>
>
> \relative c {
>   \once \override Staff.HorizontalBracket #'Y-offset-callbacks = #(list
> Staff_symbol_referencer::callback)
>   \once \override Staff.HorizontalBracket #'staff-position = #5
>   \once \override Staff.HorizontalBracket #'direction = #UP
>   c4\startGroup c'''4 c,,,4\stopGroup
> }
 
That is very close to what I need. It works perfectly for analysis brackets
but it appears that the staff-position can't be more than 8 (or perhaps 7.5),
which puts the volta brackets a little too close to the staff. If I could raise
those one more note space it would be perfect.
--
Sven Axelsson

reply via email to

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