|
From: | Ed Gordijn |
Subject: | Alignment of text mark in a function |
Date: | Mon, 04 Apr 2011 18:16:52 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 |
Hi,
Last week a posted a request (see "Adding text to rehearsal marks") for help but so far didn't get any response. Therefore I decided to split the problem in pieces, starting with the alignment of text marks. I want to print a mark that consist of a rehearsal mark and a text and want to align it on the center of the rehearsal mark. I know how I would this manually: \once \override Score.RehearsalMark #'self-alignment-X = #-0.83 \mark \markup { \bold { \box "10" \normalsize "Theme from 007" }} But I want this in a function so I could use it with other text and marks. I worked out two options. The first option (IIa in the script) is the manual approach. This works fine but although I know how to calculate the override value in a markup script I don't know how I should get the result in the override. Is that possible? Option IIb is something that I got from a snippet about centering Dynamics (see http://old.nabble.com/dynamic- Greetings, Ed |
CenterMark.ly
Description: Text document
CenterMark.pdf
Description: Adobe PDF document
[Prev in Thread] | Current Thread | [Next in Thread] |