lilypond-user
[Top][All Lists]
Advanced

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

Re: Help defining commands


From: Mats Bengtsson
Subject: Re: Help defining commands
Date: Tue, 25 Nov 2003 09:21:06 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1

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
address@hidden
http://mail.gnu.org/mailman/listinfo/lilypond-user






reply via email to

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