[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with Lilypond functions
From: |
jim.showalter |
Subject: |
Problem with Lilypond functions |
Date: |
Thu, 29 Jul 2010 23:37:44 -0400 |
I have searched the archives and cannot find why the following is happening.
They are contrived to demonstrate a larger problem.
This one works as expected
majorKey = #(define-music-function (parser location note ) (ly:music?)
#{
a $note g
#})
{
\majorKey g
}
But what I really want to do is something like this.
majorKey = #(define-music-function (parser location note ) (ly:music?)
#{
\key $note \major
#})
{
\majorKey g
}
I get an error message about that it is expecting "\default or
NOTENAME_PITCH" I get a similar error for
transpose. Is there another variable type (other than ly:music) that should
be used? Can anyone explain this behavior?
Thanks,
Jim
- Problem with Lilypond functions,
jim.showalter <=