[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lily inside scheme
From: |
Jan Nieuwenhuizen |
Subject: |
Re: Lily inside scheme |
Date: |
Sun, 25 Apr 2004 17:00:49 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Nicolas Sceaux writes:
> ly:parse-string is definitely a wonderful feature.
Well, you're to blame that we have it ;-)
> Here is a cleaner
> version of a #{ ... #} lilypond syntax inside scheme.
Cool; do you want to add this to CVS?
> (list->string (map (lambda (char)
> (case char
> ((#\0) #\a)
I'm probably missing something here; why don't you do something like:
(if (char:numeric? char) (integer->char (+ (char->integer #\a)
(char->integer char))))
> In the following example, this #{...#} syntax is used to build music
> expressions within scheme functions:
> foo = \notes { c'8( d') e'( f') g'4( a') }
>
> \score {
> \notes {
> \foo
> \apply #(with-props #{
> \override Stem #'thickness = #4
> \override Slur #'transparent = ##t #}) { \foo }
> \foo
> }
> }
That's really great.
Jan.
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org
- Lily inside scheme, Nicolas Sceaux, 2004/04/24
- Re: Lily inside scheme,
Jan Nieuwenhuizen <=
- 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, 2004/04/26
- Re: Lily inside scheme, Werner LEMBERG, 2004/04/26
- Re: Lily inside scheme, Jan Nieuwenhuizen, 2004/04/26