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.
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)) >>-----Original Message----- >>From: Thomas Morley [mailto:[email protected]] >>Sent: Thursday, May 14, 2015 1:07 PM >>To: Peter Gentry >>Cc: lilypond-user >>Subject: Re: Music function problem >> >>2015-05-14 13:44 GMT+02:00 Peter Gentry >><[email protected]>: >>> I am trying to write an include file that will modify a music >>> object dependent on the specified instrument. >>> >>> >>music-functions _do_ accept strings or numbers, something else >>must be wrong. >>Can't say more without compilable code, though. >>Cheers, >> Harm > > >_______________________________________________ >lilypond-user mailing list >[email protected] >https://lists.gnu.org/mailman/listinfo/lilypond-user -- Mark Knoop _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
