lilypond-user
[Top][All Lists]
Advanced

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

Re: Macro pre-processing?


From: Geoff Horton
Subject: Re: Macro pre-processing?
Date: Sat, 29 Apr 2006 17:28:26 -0400

Using the techniques currently available in LilyPond, Erik's example
is easily implemented as:

foo = #(define-music-function (parser location x y) (ly:music? ly:music?)
  #{
    c8 $x d8 $y  #})

{ \foo  e16 { f g }}

As you see, you don't really need any Scheme competence to do it.

I question that. I think it looks easy to you because you already know
how it all works and fits together. I do agree that adding some more
examples to the manual would help greatly.

Geoff




reply via email to

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