Simple, just say something like

startBarre = \notes{
 \property blabla.blabla \override #'blalba  = #blablabla
 ...
 \startTextSpan
}

/Mats

Guy Shaviv wrote:

I'm trying to typeset music for classical guitar for which I need to be able to produce the barre symbol. I've managed to acheive the desired output with text spanners via the code:

\property Voice.TextSpanner \set #'edge-text = #'("C II " . "")
\property Voice.TextSpanner \set #'direction = #1
\property Voice.TextSpanner \set #'style = #'line
\property Voice.TextSpanner \set #'edge-height = #'(0 . 0.5)
\property Voice.TextSpanner \set #'padding = #1
\property Voice.TextSpanner \set #'enclose-bounds = ##t

c''\startTextSpan ..... \stopTextSpan

I'de like to define this as a pair of commands. The first would be \statBarre which would take as a parameter the barre position, say \startBarre "IV". The position has to be concatinated with the "C" symbol and replaced as the first parameter in the edge-text property. The second command is a simple \stopBarre which I think I can do by just defining:

stopBarre = \stopTextSpan.

Thanks.

--
Guy Shaviv
+++The information transmitted is intended only for the person or entity to which it 
is addressed and may contain confidential and/or privileged material. Any review, 
retransmission, dissemination or other use of, or taking of any action in reliance 
upon, this information by persons or entities other than the intended recipient is 
prohibited. If you received this in error, please contact the sender and destroy any 
copies of this document.+++



_______________________________________________
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user






_______________________________________________
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user

Reply via email to