lilypond-user
[Top][All Lists]
Advanced

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

Re: Auto Place text after last beat of a Text Spanner


From: Simon Albrecht
Subject: Re: Auto Place text after last beat of a Text Spanner
Date: Fri, 16 Sep 2016 00:23:33 +0200

On 15.09.2016 22:13, dtsmarin wrote:
Hi everyone!

Is it possible in Lilypond to create a function that detects the last
note\beat

Writing LilyPond code does influence habits…

  of a text spanner and then places a markup on the following beat?

e.g. \spanner { %music  } r <- here the function should place automatically
a markup ...

Easy – use an empty chord:
(I may assume you’re using development versions?)

\version "2.19.47"
ottavaWithLoco =
#(define-music-function (mus) (ly:music?)
  #{
    \set Staff.ottavation = 1
    $mus
    \set Staff.ottavation = 0
    <>^\markup \italic "loco"
  #})

HTH, Simon



reply via email to

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