Am 16.12.2014 00:22, schrieb Hans Sommer:
Urs Liska <ul <at> openlilylib.org> writes:
It's define-music-function,
not "define-music function"
HTH
Urs
Am 15.12.2014 23:56, schrieb Hans
Sommer:
Hello,
Ich wrote a scheme function for getting a shortcut for the \relative command.
Hello Urs,
in my function I used define-music-function ( the - got lost during copy&paste).
The error locates also the error at line 46 in addons.ly (thats where the
function definition is located).
My question is: why does lilypond expect music when I put ly:pitch? as the
predicate?
rel = #(define-music-function
(parser location p notes)
(ly:pitch? ly:music?)
#{
\relative #p #notes
#})
I'm quite sure that this function is OK, as the following complete file
(i.e. without any includes/library) compiles wihtout errors on 2.18.2
and 2.19.6.
\version "2.18.2"
rel =
#(define-music-function (parser location p notes)
(ly:pitch? ly:music?)
#{
\relative #p #notes
#})
myscore = {
\rel c' {f4 g a b }
}
\score {
\myscore
}
I assume the problem lies somewhere else in your infrastructure.
HTH
Urs
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user