lilypond-user
[Top][All Lists]
Advanced

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

Re: conversion factor for \pt


From: Trevor Daniels
Subject: Re: conversion factor for \pt
Date: Sat, 16 Mar 2013 11:02:37 -0000

Thomas Morley wrote Saturday, March 16, 2013 2:10 AM


> in the following markup I want draw-line to have the same Y-length as the 
> brace.
> 
> \version "2.16.2"
> 
> factor = #0.175  % a rough estimation, and for default-staff-size only
> size = #40
> 
> \markup {
>        \left-brace #size
>        \translate #`(0 . ,(/ (* size factor) -2))
>        \draw-line #`(0 . ,(* size factor))
> }
> 
> The size of \left-brace is measured in pts according to it's
> definition in /scm/define-markup-commands, "feta brace in point size",
> and is absolute.
> \draw-line uses staff-spaces, afaik.
> 
> I need the conversion factor for default and non-default-staff-size.

Does the example in
http://www.lilypond.org/doc/v2.17/Documentation/notation/fonts#entire-document-fonts
help?

Trevor

reply via email to

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