<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
You were right, Robert. It was RGP Lua on Finale 25, but it was not
the last release, but the version from May (0.62 or 0.61?).<br>
<div class="moz-forward-container"> With the 0.63 release from July
Fin25, 26, 27 all return -3 with RGP Lua, while JW Lua still
returns -125.<br>
So it's different than in JW Lua, but at least consistent.<br>
<br>
Jan<br>
<br>
<div class="moz-cite-prefix">Am 19.08.2022 um 13:51 schrieb Robert
Patterson:<br>
</div>
<blockquote type="cite"
cite="mid:CAACncevfSZAp2cr2bF-0J3Hkj3M8CPwFfZBaWsajZD_E+F8dQg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div dir="ltr">
<div>Please confirm that your Finale 25 setup is actually
using RGP Lua. I have run tests here and my script exhibits
the problem (for all Finale versions) with JW Lua, but it
does not exhibit the problem for any version of Finale with
RGP Lua.</div>
<div><br>
</div>
<div>Furthermore, the code is exactly the same for Finale 25
as for 26/7. (The bug fix was in PDK Framework code, not
Finale.) All this leads me to think your F25 menu item
hooked up to JW Lua rather than RGP Lua.<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Aug 19, 2022 at 5:07
AM Jan Angermüller <<a href="mailto:jan@angermueller.com"
moz-do-not-send="true" class="moz-txt-link-freetext">jan@angermueller.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div> We should think about a fix:<br>
I have just noticed that RGP Lua in Finale 25 returns -125
and only in Finale 26/27 returns -3.<br>
JW Lua returns -125 in all Finale versions.<br>
<br>
Jan<br>
<br>
<br>
<div>Am 19.08.2022 um 12:00 schrieb Jan Angermüller:<br>
</div>
<blockquote type="cite"> Hi Robert et al.,<br>
<br>
I noticed an undocumented difference in RGP Lua/JW Lua.<br>
<br>
FCStemMod.HorizontalUpOffset returns wrong values in JW
Lua (signed byte problem) and RGP Lua returns the
correct values.<br>
It might have be fixed automaticaly because of a fix in
the Fin26+ PDK. <br>
We (Robert and I) had talked about FCStemMod issues some
time ago and I wrote that I assume that there must have
been some changes as another FCStemMod problem didn't
occur anymore in Fin64bit either.<br>
<br>
Test script which works with the attached file:<br>
<br>
if finenv.IsRGPLua then require('mobdebug').start() end<br>
local region=finale.FCMusicRegion()<br>
region:SetFullDocument()<br>
for entry in eachentry(region) do<br>
if entry and entry.StemDetailFlag then<br>
local stemmod=finale.FCStemMod()<br>
stemmod:SetNoteEntry(entry)<br>
if stemmod:LoadFirst() then<br>
print(stemmod.HorizontalUpOffset)
--probably the same with HorizontalDownOffset<br>
end<br>
end<br>
end<br>
<br>
In Finale 27 JW Lua returns: -125<br>
In Finale 27 RGP Lua returns: -3 (which is correct)<br>
<br>
In JW Lua I used this correction function, but it took
quite some time to find out, it wasn't necessary in RGP
Lua anymore.<br>
<br>
function jalib_CorrectStemOffsetForJWLua(offset)<br>
if not finenv.IsRGPLua then<br>
if offset<0 then<br>
offset=-offset-128<br>
elseif offset>128 then<br>
offset=-(256-offset)<br>
end<br>
end<br>
return offset<br>
end<br>
<br>
I don't know if it makes sense to correct this in RGP
Lua - maybe for compatibility reasons? <br>
But as it is already like it and it actually fixes
something, I think we should keep it and know that this
leads to problems only in JW Lua.<br>
<br>
Jan<br>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
JWLua mailing list
<a href="mailto:JWLua@jwmusic.nu" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">JWLua@jwmusic.nu</a>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
Jan Angermüller
Orchideenstieg 13
22297 Hamburg
Tel. 040 - 28 94 84 82
Mobil 0173 - 99 33 904
<a href="http://www.elbsound.studio" target="_blank" moz-do-not-send="true">www.elbsound.studio</a></pre>
</div>
_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">JWLua@jwmusic.nu</a><br>
<a
href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:JWLua@jwmusic.nu" moz-do-not-send="true">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" moz-do-not-send="true">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Jan Angermüller
Orchideenstieg 13
22297 Hamburg
Tel. 040 - 28 94 84 82
Mobil 0173 - 99 33 904
<a class="moz-txt-link-abbreviated" href="http://www.elbsound.studio" moz-do-not-send="true">www.elbsound.studio</a></pre>
</div>
</body>
</html>