[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How does staff-size relate to pixels?
From: |
Bertalan Fodor |
Subject: |
Re: How does staff-size relate to pixels? |
Date: |
Wed, 27 Dec 2006 21:28:08 +0100 |
In the next version of LilyPondTool (to be released until Sunday) there will be
a visual tweaking tool. There I use the following (magnification is 100 for
100% IIRC):
public static final double STAFFSIZEFACTOR = 3.5;
public static final double STAFFSIZEBIAS = 3;
public static double pixelToStaffSize(int pixels, double staffSize, double
magnification) {
return pixels / ((staffSize * STAFFSIZEFACTOR - STAFFSIZEBIAS) * (magnification
/ 10));}