help-gnu-music
[Top][All Lists]
Advanced

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

Re: Macro definitions and Scheme


From: janneke
Subject: Re: Macro definitions and Scheme
Date: 25 Nov 2000 21:30:19 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

Mats Bengtsson <address@hidden> writes:

> I did some experiments using the new font selection mechanism
> when typesetting figured bass, especially to access the 
> accidentals form the feta font.

Try:

#(define text-sharp '(music (named "accidentals-1")))

\score{
\notes{
a^#text-sharp
a^#`(rows ,text-sharp "6")
}
}

> This works well and I can do, for example,
> c^\textscript #'(music (named "accidentals-1"))
> to typeset a sharp above the note. I also defined
> a macro as a shorthand:
> sharp = \textscript #'(music (named "accidentals-1"))
> 
> However, often I want to typeset "#6" (for a raised 6)
> or some other combination of numbers and accidentals.
> Now comes the problem I haven't been able to solve:
> Is it possible to device a "macro" of some kind that
> can be used as a shorthand in 
> c^\textscript #'(rows (music (named "accidentals-1")) "6")
> 
> If I make a Lilypond definition, 
> sharpscm = #'(music (named "accidentals-1"))
> and try #'(rows \sharpscm "6")
> the Guile parser will treat \sharpscm as any symbol,
> if I make a scheme definition,
> #(define shscm '(music (named "accidentals-1")))
> I have still not found any way to make the Guile
> parser evaluate the symbol shscm when it reads the
> list which later is interpreted in text-item.cc.
> 
> Is there some solution I haven't found or is it
> a collision between the two languages Lilypond and
> Scheme that's hard to resolve?
> 
>    /Mats
> 
> _______________________________________________
> Help-gnu-music mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-gnu-music
> 

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org



reply via email to

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