lilypond-user
[Top][All Lists]
Advanced

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

Re: Place text next to rehearsal mark, or with left edge over barline if


From: caagr98
Subject: Re: Place text next to rehearsal mark, or with left edge over barline if there is none
Date: Sun, 9 Jul 2017 22:09:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

I guess I'll just have to go with EditionEngraver. The main reason I didn't use it before was that I couldn't figure out how to install it, but I managed to figure that out.

On 07/09/2017 07:38 PM, Simon Albrecht wrote:
On 09.07.2017 18:24, address@hidden wrote:
As you can see on the screenshot, both texts are misaligned.

That’s your opinion.

The first one, a \tempo, is placed *under* the rehearsal mark instead of next to it.

Well, both are placed exactly according to standard conventions: the center of the RehearsalMark aligned to the bar line, and the left edge of the MetronomeMark aligned to the note at the same moment. And since the former has a higher outside-staff-priority (see <http://lilypond.org/doc/v2.19/Documentation/learning/outside_002dstaff-objects>) it is further away from the staff.

The second one, the name of a song, is too far too the right, since it's attached to the note instead of the barline (it's a <>^"").

Well, you explained that one yourself. I think it’s perfectly fine like that (except perhaps alignment should disregard the quotes for a more balanced look), but if you want the text to refer to the section instead of the notes, the question might be “How do I combine \mark\default and a custom text into a single RehearsalMark?”. I don’t know that off the top of my head…

How can I move the texts to be next to the rehearsal mark (without manual adjustments)?

Write an intelligent algorithm that decides when it makes sense to shift one of the objects? … What’s so bad about having a manual adjustment? I’d rather Lily were cleverer in such situations, but this is asking _very_ much. Maybe you want to separate presentation and content, so using the edition engraver would be a good choice.

And is there a version of <>^"" that is attached to a moment instead of a note, to be more semantically correct?

TextScriptEvent <http://lilypond.org/doc/v2.19/Documentation/internals/textscriptevent> is a post-event, not a rhythmic-event, so no, there isn’t. But the empty chord solution is pretty elegant for input, isn’t it?

Best, Simon



reply via email to

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