[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: extended trill flat or sharp macro
From: |
Nicolas Sceaux |
Subject: |
Re: extended trill flat or sharp macro |
Date: |
Fri, 20 Feb 2004 18:01:50 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
[oups, sorry for the private answer, Paul]
this answer applies for recent development releases only.
Wed, 18 Feb 2004 14:21:13 -0700, Paul a dit :
> The following code works for extended trills:
> trstyle = {
> \override TextSpanner #'style = #'trill
> \override TextSpanner #'edge-height = #'(0 . 1)
> }
> trstart = \notes { %\override TextSpanner #'font-family = #'music
> \trstyle
> \override TextSpanner #'edge-text
> = #(cons (make-musicglyph-markup "scripts-trill") "")
> }
> \notes{ \trstart f1~^\startTextSpan f1 \stopTextSpan }
> [...]
> Now how do I learn how make-musicglyph-markup works so I can combine
> the two as I have started to do here?:
> trflatstart = \notes{
> \trstyle
> \override TextSpanner #'edge-text =
> #(cons (make-musicglyph-markup "
> ...
> Thanks for any ideas,
> Paul Scott
You can use the `markup' scheme macro to build markups:
trflatstart = \notes{
\trstyle
\override TextSpanner #'edge-text =
#(cons (markup #:musicglyph "scripts-trill"
#:raise 0.8 #:flat)
"")
}
It makes the translation from LilyPond syntax to scheme syntax quite
straight-forward. Its documentation is here:
http://lilypond.org/doc/v2.1/Documentation/user/out-www/lilypond/Markup-construction-in-scheme.html
nicolas