lilypond-user
[Top][All Lists]
Advanced

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

barré variables and TextSpanner


From: Federico Bruni
Subject: barré variables and TextSpanner
Date: Sun, 18 Nov 2012 13:11:46 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.10) Gecko/20121028 Icedove/10.0.10

I'm currently using these simple variables to reduce the clutter in my files:

barreI = \override TextSpanner #'(bound-details left text) = #"B I "
barreII = \override TextSpanner #'(bound-details left text) = #"B II "
barreIII = \override TextSpanner #'(bound-details left text) = #"B III "
...

I'm ok with adding \startTextSpan and \stopTextSpan every time. I just wanted to save some space in the music input.

Now I'd like to avoid this long list of frets and define a function which can take the fret as argument. So I can use:

\barre #"I"
\barre #"V"

I think that it would be easier to maintain, but I don't know where to start.
I've found this snippet in the LSR:
http://lsr.dsi.unimi.it/LSR/Item?id=632

But it's aimed at chords. Also, it works only in 2.14.2, not in 2.16

Thanks
--
Federico



reply via email to

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