OK, thanks. That gives the correct output.

But how would I wrap this into a self-contained command?

If I try

tc = \once \override TextScript #'staff-padding = #2 \markup { \column { "T"
"C" } }

then Lily fails (understandably) when I try to use as { a_\tc }

I would like to have the command completely self-contained,
since this is an abbreviated notation, and I want to be able to
switch between this and the full notation that instead inserts
a complex grace note, without any changes to the score.

That is also the reason for why I want the syntax to be

{ a\tc } instead of { a_\tc }

-- 
Sven Axelsson 

> -----Original Message-----
> From: Mats Bengtsson [mailto:[EMAIL PROTECTED] 
> Sent: den 18 juli 2005 21:27
> To: Sven Axelsson
> Cc: [email protected]
> Subject: Re: Custom markup
> 
> One useful trick here is to increase the value of the
> staff-padding property of the TextScript object. This property
> determines the minimum distance from the script to the staff lines,
> so as long as you set this value large enough so that no note gets
> too close to the text scripts, they will all be vertically aligned.
> For the syntax, I don't see any alternative, but is it really that
> hard to press an extra '_' key every now and then?
> 
>     /Mats
> 
> Sven Axelsson wrote:
> > I want to create a simple text markup that should be placed
> > *at a fixed height* below the notes. I haven't figured out 
> > how yet - so many properties.
> > 
> > I have this now
> > 
> > tc = \markup { \column { "T" "C" } }
> > 
> > and using it like this
> > 
> > \relative c' { c4_\tc g'_\tc b_\tc }
> > 
> > which is OK, except for the mark shifting up and down a little
> > depending on the notes. How can I fix that?
> > 
> > And ideally I'd like the command to be c\tc and not c_\tc as
> > of now. Is that possible?



_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to