lilypond-user
[Top][All Lists]
Advanced

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

Re: Music function problem


From: Peter Gentry
Subject: Re: Music function problem
Date: Thu, 14 May 2015 21:19:58 +0100

Date: Thu, 14 May 2015 16:01:34 +0100

From: Mark Knoop <address@hidden>

To: Lilypond User List <address@hidden>

Subject: Re: Music function problem

Message-ID: <address@hidden>

Content-Type: text/plain; charset=US-ASCII

At 14:57 on 14 May 2015, Peter Gentry wrote:

> I have seen the error of my ways...

>My previous use of a function needed just a music object this was

>simply the following music _expression_ in my case an include file of

>notes.

>

>When the function has an additional parameter this must come after the

>music not immediately after the \functionname.

>

>I was anticipating some internal Lily magic when the answer was

>simple...doh.

Mark Knoop wrote:

>>Well, you could just change the order of the parameters, viz:

>>callmyfunction =

>>#(define-music-function (parser location n m) (number? ly:music?) (anotherfunction m n))

Yes that works too - sometimes I cannot see the wood for the trees!


reply via email to

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