lilypond-user
[Top][All Lists]
Advanced

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

Re: Macro not working with 2.16


From: SoundsFromSound
Subject: Re: Macro not working with 2.16
Date: Wed, 10 Apr 2013 11:14:19 -0700 (PDT)

Hi Alberto,

What does your macro do exactly?  Just curious, thanks!

Looks nice!


Alberto Simões-2 wrote
> Hello
> 
> Some time ago (years probably) somebody in this list helped me with this 
> macro, for \inline that work anywhere in the music:
> 
> 
> partialInline = #(define-music-function
>       (parser location nom den mus)
>       (integer? integer? ly:music?)
>    #{
>      \set Score.measurePosition = #(ly:make-moment (- $nom) $den)
>      $mus
>     #}
> )
> 
> 
> That worked like
>     \partialInline #1 #8 { a8 }
> 
> Now I get some complains with 2.16:
> 
> ../utils.ly:9:34: error: GUILE signaled an error for the expression 
> beginning here
>      \set Score.measurePosition = #
>                                    (ly:make-moment (- $nom) $den)
> Unbound variable: $nom
> melody.ly:31:32: error: error in #{ ... #}
>      \partialInline #1 #8 { a8 }
>                                  |
> Interpreting music...
> warning: type check for `measurePosition' failed; value `#
> <unspecified>
> ' 
> must be of type `moment'
> 
> Any help?
> Thank you
> Alberto
> 
> _______________________________________________
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user





-----
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Macro-not-working-with-2-16-tp144278p144292.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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