It still seems not ideally flexible, because for example, you want to
put a markup above the \bar ":|" (like "repeat 3x")
Then you must:
- change the formatting of the RehearsalMark object (because it is
typeset in a larger font than a markup)
- remove the Staff_collecting_engraver from the Score (this should not
be mandatory, as I just want to align a text markup to a grob).
Also, to align the markup to the left of the key signature, you must
override a property of Score.KeySignature, so that's again not flexible.
Bert
James E. Bailey wrote:
Am 30.01.2009 um 10:29 schrieb Bertalan Fodor (LilyPondTool):
I think there is a general problem in LilyPond with the positioning
of things.
You can easily attach a markup (that now actually can contain
anything) to a note. But can't attach it to a clef, a stem, a bar
line etc.
It would be very good, if you could attach a markup to any grob.
I suppose it wouldn't be very hard, but I wonder if more experienced
users could tell me what to do.
I'm thinking about something like this:
\clef c ^\markup { }
Syntax-wise it may be difficult. But wouldn't it be possible to
create music function that takes a grob name, and changes the drawing
function in a way that you can put a markup above, below, left or
right to it?
Bert
The selected snippets section of 1.8.1 Writing text - Text Marks has
exactly how to align a \mark (which can contain a \markup) to various
other notation elements, clef is the first one.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user