[JW Lua] PageFormatPrefs.SystemStaffHeight error: bad argument #2 to '?' (number has no integer representation)
Bruce Olson
Finale at web.yosound.com
Sun Nov 8 22:48:10 CET 2015
Jari,
I get the error using the following code:
scorePageFormatPrefs.SystemStaffHeight = (16 * (((scoreheight - 288 -
216 - 72 - 180 - 72 - 108) / StavesSpan)) * 96)
Placing the following before the call:
if DEBUG then print ("scorePrefs SystemStaffHeight, in EVPUs:", (16 *
(((scoreheight - 288 - 216 - 72 - 180 - 72 - 108) / StavesSpan)) *
96),",",(((scoreheight - 288 - 216 - 72 - 180 - 72 - 108) / StavesSpan)) *
96) end
gives:
scorePrefs SystemStaffHeight, in EVPUs: 890.01869158879 , 55.626168224299
This used to work in versions prior to 0.40, and am currently running 0.42
on Windows.
I don't recall that we have any type conversion functions. Is that need
here? How do we change a float to an integer?
--
Regards,
Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20151108/16c76952/attachment.htm>
More information about the JWLua
mailing list