[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add text to rehearsal mark
From: |
Ed Gordijn |
Subject: |
Re: Add text to rehearsal mark |
Date: |
Fri, 15 Apr 2011 10:02:55 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 |
Hi,
I more or less finished my music function. The result is added.
I didn't really solved the issues I addressed to the list but avoided
them. Now I store the default format for the rehearsal mark in my own
function "format-mark-default" so that I can use it in my music function
RehearsalMarkWithText and can change back to the default after printing
with RehearsalMark.
I still think that it should be possible to use the calculated value for
the alignment directly so help on that point is appreciated.
Greetings, Ed
Op 01-04-11 13:57, Ed Gordijn schreef:
Hi,
I'am working on a music function that creates a rehearsal mark with
extra text added. It would be nice if the end result would be
something that would work as: \mark \default "text".
These are my first steps into the world of scheme, so I suppose that
some of my questions are rather basic.
The code below more or less works and shows what I am trying to
achieve but is not perfect at all! So, I need some help to solve the
drawbacks.
Here are the issues that need attention:
1 - I would like to use the current format for the rehearsal mark. Is
it possible to call/use the current Score.markFormatter and store the
mark in a markup-variable?
2 - Now I redefine the Score.markFormater with "/once /set" but
"/once" generates warnings. What is wrong?
3 - Is it possible to avoid the /set Score.markFormatter and use the
/mark /markup /center-at-mark directly?
I could use [1] to retrieve the current mark and should increment
the counter: Score.rehearsalMark = Score.rehearsalMark + 1
4 - Allignment is ok but the extend is not correct, see the allignment
of the first rehearsal mark that moves up because of the second mark.
CenterMark.ly
Description: Text document
CenterMark.png
Description: PNG image