[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Paper variables in scheme function
From:       David Kastrup <dak () gnu ! org>
Date:       2014-03-30 11:45:06
Message-ID: 8761mvoqpp.fsf () fencepost ! gnu ! org
[Download RAW message or body]

David Kastrup <dak@gnu.org> writes:

> test =
> #(define-scheme-function (parser location num) (number?)
>   #{ \paper { top-margin =
>                  $(* num (module-ref (current-module) 'paper-height)) } #})
>
> \paper { \test 0.9 }
>
>
> { c'1 }
>
>
> I am somewhat irritated that a plain
>
> \test 0.9
>
> does not work just as well.  I thought I had done something to make that
> work at one point of time, but apparently not so.

<URL:http://code.google.com/p/lilypond/issues/detail?id=3892>
Issue 3892: Allow scheme expressions for scores, output defs, music in
            toplevel, book, bookpart, scores


Consists of commits:

Allow scheme expressions for scores, output defs, music in scores


Allow output defs as scheme expressions in toplevel, book, bookpart.


lily/parser.yy: whitespace fixes

http://codereview.appspot.com/82300044

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic