[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lily inside scheme
From: |
Nicolas Sceaux |
Subject: |
Re: Lily inside scheme |
Date: |
Mon, 26 Apr 2004 23:17:41 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Sun, 25 Apr 2004 21:55:23 +0200, Jan a dit :
> Looks good. When you feel this has fleshed out, there should be some
> documentation (but I'm still `waiting' for the \book stuff to
> stabilize before writing real documentation, eg).
OK, of course. Even if the internals will change, the interface, which
is still simple, can be documented. I'm beginning a draft.
> Maybe the explanation of #{ #} should already be moved/added to NEWS
> file?
a possible explanation for NEWS.texi:
* LilyPond expressions can be embedded into Scheme, thanks to the
`#{ ... #}' syntax. Within such a block, Scheme forms, for
instance variable names, can be introduced thanks to a `$'
character (`$$' has to be used to issue a single `$' character).
These forms are then 'printed' in the pattern, as if they were
called by (display).
#(define (textoffset dx dy)
(ly:export
#{ \override Voice.TextScript #'extra-offset = #(cons $dx $dy)
#}))
\score {
\notes {
c'^"normal text"
%% the following statement is the same as
%% \override Voice.TextScript #'extra-offset = #(cons 2 -3)
#(textoffset 2 -3)
c'^"text with offset"
}
}
nicolas
- Lily inside scheme, Nicolas Sceaux, 2004/04/24
- Re: Lily inside scheme, Jan Nieuwenhuizen, 2004/04/25
- Re: Lily inside scheme, Nicolas Sceaux, 2004/04/25
- Re: Lily inside scheme, Jan Nieuwenhuizen, 2004/04/25
- Re: Lily inside scheme, Nicolas Sceaux, 2004/04/25
- Re: Lily inside scheme, Jan Nieuwenhuizen, 2004/04/25
- Re: Lily inside scheme,
Nicolas Sceaux <=
- Re: Lily inside scheme, Werner LEMBERG, 2004/04/26
- Re: Lily inside scheme, Jan Nieuwenhuizen, 2004/04/26