lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ritardando and accelerando


From: Thomas Morley
Subject: Re: Ritardando and accelerando
Date: Tue, 27 Jan 2015 22:08:44 +0100

2015-01-27 7:12 GMT+01:00 Noeck <address@hidden>:
[...]
>
> PS: Wouldn’t it be nice to have these commands (or similar):
> b1\startText "rit." c e,\stopText

Hi,

try:

\version "2.19.15" % is needed!

startMyTextSpan =
#(define-event-function (parser location txt mus)((markup? "")ly:music?)
  (if (and (string? txt) (string-null? txt))
      #{ \startTextSpan #}
      #{
        -\tweak TextSpanner.bound-details.left.text $txt
        \startTextSpan
      #}))


\relative c' {
    c1
        \startMyTextSpan \markup \with-color #red "whatever"
    d
    e
    f
    g\stopTextSpan

    \override TextSpanner.bound-details.left.text = "TEXT"
    c1
        \startMyTextSpan
    d
    e
    f
    g\stopTextSpan
}

HTH,
  Harm



reply via email to

[Prev in Thread] Current Thread [Next in Thread]