lilypond-user
[Top][All Lists]
Advanced

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

Re: With \markup { \score { can I separately control the score size?


From: David Kastrup
Subject: Re: With \markup { \score { can I separately control the score size?
Date: Sun, 29 Jun 2014 16:17:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Thomas Morley <address@hidden> 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

reply via email to

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