Hi Harm,
2014-06-29 16:03 GMT+02:00 Thomas Morley <[email protected]>:
> 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
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user