lilypond-user
[Top][All Lists]
Advanced

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

Scheme variables and chordmode


From: Timothy S. Nelson
Subject: Scheme variables and chordmode
Date: Thu, 28 Feb 2008 12:37:01 +1100 (EST)

        Hi all.  I'm a programmer, but a scheme beginner.  I'm using the
following code.

------------------------------------------------------------

dostroke = #(define-music-function (parser location chord length) (ly:music? num
ber?)
        #{
                \chordmode { e,$length:5.8 }
        #}
)

------------------------------------------------------------

        I presume you can all see what I'm trying to achieve here.  However, I
can't get it to work, because it says "Parsing...ERROR: Unbound variable:
length:5.8". The other variations I've tried all also give errors. Is there some way I can do this using chordmode, or do I have to do it the long way?

        Thanks,


---------------------------------------------------------------------
| Name: Tim Nelson                 | Because the Creator is,        |
| E-mail: address@hidden    | I am                           |
---------------------------------------------------------------------

----BEGIN GEEK CODE BLOCK----
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V- PE(+) Y+>++ PGP->+++ R(+) !tv b++ DI++++ D G+ e++>++++ h! y-
-----END GEEK CODE BLOCK-----




reply via email to

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