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: Pierre Perol-Schneider
Subject: Re: With \markup { \score { can I separately control the score size?
Date: Sun, 29 Jun 2014 16:13:47 +0200

Hi Harm,

2014-06-29 16:03 GMT+02:00 Thomas Morley <address@hidden>:
 
are you aware that we have two commands called `score'?
One is a music-function the other a markup-command.

No I arn't.
 
I don't think you can replace the LSR-snippet-code with one outputting a markup.
It's simply a different thing.

Ok.
 
However the following code takes a score (the music) as an argument
and returns a scaled markup:

Great, that's what I'm looking for :

%%%%%%%%%%%%%%%%%%%
mySize =
#(define-scheme-function (parser location nmbr score) (number? ly:score?)
  (markup #:scale (cons (+ 1 (* 0.1 nmbr)) (+ 1 (* 0.1 nmbr))) #:score score))

\mySize #-5
  \score {
    c''1
    \layout {
      indent = 0
    }
  }

\mySize #0
  \score {
    c''1
    \layout {
      indent = 0
    }
  }

\mySize #5
  \score {
    c''1
    \layout {
      indent = 0
    }
  }
%%%%%%%%%%%%%%%%%%%%

Thanks Harm,
Pierre

reply via email to

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