[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Precise markup position
From: |
Robin Bannister |
Subject: |
Re: Precise markup position |
Date: |
Thu, 07 May 2015 11:09:42 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
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