lilypond-user
[Top][All Lists]
Advanced

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

Re: relative position of tempo and rehearsal marks


From: Trevor Daniels
Subject: Re: relative position of tempo and rehearsal marks
Date: Mon, 13 Apr 2009 18:09:52 +0100

There's actually quite an extended section on this
in the Learning Manual, with no need to go to the
Internals Reference.  See Section 4.4.3 Outside-staff
objects.

Trevor

----- Original Message ----- From: "Simon Bailey" <address@hidden>
To: "Frédéric Bron" <address@hidden>
Cc: "lilypond-user" <address@hidden>
Sent: Monday, April 13, 2009 12:03 PM
Subject: Re: relative position of tempo and rehearsal marks


frédéric,

On Apr 13, 2009, at 8:41 AM, Frédéric Bron wrote:
with 2.12.2 (windows):

{ \tempo "Ziemlich langsam" 4 = 66 R1 \mark \default R1 }

puts "A" above "Ziemlich langsam" but I would expect "A" to be below.
How can I reverse the default behaviour?


try this:

<<<
\version "2.12.2"
{
\once \override Score.MetronomeMark #'outside-staff-priority = #1500
\tempo "Ziemlich langsam" 4 = 66
R1
\once \override Score.RehearsalMark #'outside-staff-priority = #1000
\mark \default
R1
}

>>>

the documentation trail for this is fairly convoluted:

NR 4.4.5 "Vertical collision avoidance"
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Vertical-collision-avoidance

find that there is a property outside-staff-priority and that objects are ordered with ascending priority away from the staff, then look up
the two objects:

IR 3.1.62 "MetronomeMark"
http://lilypond.org/doc/v2.12/Documentation/user/lilypond-internals/MetronomeMark

IR 3.1.80 "RehearsalMark"
http://lilypond.org/doc/v2.12/Documentation/user/lilypond-internals/RehearsalMark

determine the values for RehearsalMark and MetronomeMark are #1500 and
#1000 respectively, so swap them with the \override command.

the trick is knowing that you're looking for vertical-collision-
avoidance rather than vertical placement of objects...

regards,
sb

--
Simon Bailey
Oompa Loompa of Science
+43 699 190 631 25



_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user





reply via email to

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