[JW Lua] FCStaffSystem:CalcHeight()

Jan Angermüller jan at angermueller.com
Thu Dec 4 17:43:22 CET 2014


Hi Bart,

is the page and system scaled to 100% ?
Otherweise you may have to take into account
page or system scaling factors.

Jan

Am 04.12.2014 17:38, schrieb Bart Visser:
> Hi Jari,
>
> I would like to place a page text 1,5cm blow the last staff system of a page. In order to do this, I'm trying to calculate the sum of the height of every staff system on the page. If I use the FCStaffSystem:CalcHeight() function I get an unexpected result:
>
> local s = finale.FCStaffSystem()
> s:Load(2)
> local height = s:CalcHeight(true)
> print(height) --> 320 but should be ±255 (2,25 cm)
>
> Would it be possible for you to explain which parts of a StaffSystem are used in the CalcHeight-function?
>
> - BottomMargin?
> - TopMargin?
> - SpaceAbove?
> - StaffHeight? (with a calculation to get a EPVU32?)
>
> Thanks,
>
> Bart
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu


-- 
Jan Angermüller
Jevenstedter Str. 80
22547 Hamburg
Tel. 040 - 28 94 84 82
www.angermueller.com





More information about the JWLua mailing list