[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with music-function for shortcut for \relative command
From: |
Hans Sommer |
Subject: |
Re: Problems with music-function for shortcut for \relative command |
Date: |
Mon, 15 Dec 2014 23:22:19 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
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
#})