lilypond-user
[Top][All Lists]
Advanced

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

Re: Precise markup position


From: Les Éditions Valmajour - pg
Subject: Re: Precise markup position
Date: Fri, 08 May 2015 00:44:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

It does the trick perfectly! Thank you so much!!
Cheers,
Pierre

Le 07/05/2015 11:09, Robin Bannister a écrit :
Stephen MacNeil wrote:
the overlay on the lsr will do this

That would be "Absolute positioning of markup elements"
http://lsr.di.unimi.it/LSR/Item?id=628


Then to position millimetre-wise, you need something like

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

#(define-markup-command (mm-translate layout props mm-offset arg)
  (number-pair? markup?)
  (let ((o-s (ly:output-def-lookup layout 'output-scale)))
    (ly:stencil-translate (interpret-markup layout props arg)
      (cons (/ (car mm-offset) o-s) (/ (cdr mm-offset) o-s)))))

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


Cheers,
Robin





reply via email to

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