|
From: | Urs Liska |
Subject: | Re: Problems with music-function for shortcut for \relative command |
Date: | Tue, 16 Dec 2014 00:36:02 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |