Thomas Morley <[email protected]> writes:

> \version "2.19.8"
>
> mySize =
> #(define-scheme-function (parser location nmbr score) (number? ly:score?)
>   (markup #:scale (cons nmbr nmbr) #:score score))
>
> \mySize #.5
>   \score {
>     c''1
>     \layout {} %% needed even with 2.19.8

Because the implicit \layout {} is squeezed in at a syntactical level.

>   }

You can get away without it by letting the parser deal with the score markup:

\version "2.19.7"

mySize =
#(define-scheme-function (parser location nmbr score) (number? ly:score?)
  #{ \markup \scale #(cons nmbr nmbr) \score { #score } #})

\mySize #.5
  \score {
    c''1
  }
-- 
David Kastrup
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to