[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: raise text in Scheme
From: |
Kieren Richard MacMillan |
Subject: |
Re: raise text in Scheme |
Date: |
Fri, 26 May 2006 08:01:47 -0400 |
Hi, Graham:
mpdolce = #(make-dynamic-script (markup #:hspace 1 #:translate
(cons 5 0) #:line(
#:dynamic "mp" #:text #:italic "dolce" )))
Thanks for the suggestion, but I had already tried the same thing
(that's what is in the docs), and was disappointed by the result --
q.v., the following comparison:
%% CODE SNIPPET BEGINS
\version "2.9.5"
\paper
{
line-width = 5\in
indent = 0\in
}
mpDolceTrans = #(make-dynamic-script (markup #:hspace 1 #:translate
(cons 5 0) #:line( #:dynamic "mp" #:text #:italic "dolce" )))
mpDolceNoTrans = #(make-dynamic-script (markup #:hspace 1 #:line
( #:dynamic "mp" #:text #:italic "dolce" )))
\relative c'
{
\override Staff.TimeSignature #'stencil = ##f
c4\< c\mpDolceTrans\> c2\! \break
c4\< \once \override DynamicText #'self-alignment-X = #-0.45 c
\mpDolceNoTrans\> c2\!
}
%% CODE SNIPPET ENDS
Notice how the crescendo ends far earlier on the "translated" version
than on the "realigned" one -- I'd like to use the latter, but
encapsulate the realignment in the variable itself (rather than in
the Lilypond code).
Thanks,
Kieren.