|
From: | Federico Bruni |
Subject: | Re: barré variables and TextSpanner |
Date: | Sun, 18 Nov 2012 14:50:13 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:10.0.10) Gecko/20121028 Icedove/10.0.10 |
Il 18/11/2012 14:28, Thomas Morley ha scritto:
boiled down, you want to use a function to set 'left 'text of TextSpanner. How about: \version "2.16.0" barre = #(define-music-function (parser location strg)(string?) (let ((arg (string-append "B " strg))) #{ \override TextSpanner #'(bound-details left text) = $arg #})) startBarre = \startTextSpan stopBarre = \stopTextSpan \relative c' { \barre I c4\startTextSpan d e f\stopTextSpan \barre II g\startBarre a b c\stopBarre }
Thanks Harm! It's perfect for my needs.I wonder if above function can be improved to make the input even simpler and concise, like this:
\barre I { c4 d e f }
[Prev in Thread] | Current Thread | [Next in Thread] |