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 <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org _______________________________________________ Lilypond-devel mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-devel