<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Robert,<br>
<div class="moz-forward-container"> <br>
in my further tests with v0.66 and Perfect Layout I noticed that
the <b>FCBeatChartElement </b>functionality has changed
significantly.<br>
My "insert space" function doesn't work anymore ... while it used
to add more space, it now reduces the space in some cases.<br>
<br>
Attached is a test document and a code snippet.<br>
However, the problem occurs in all sorts of documents.<br>
<br>
The code simply prints the FCBeatChartElement properties from
measure 4.<br>
It seems that there is a problem with the MinimumPosition on
FCBeatChartElement 0.<br>
<br>
function plugindef()<br>
finaleplugin.LoadLuaSocket=true<br>
return "Test","Test","Test"<br>
end<br>
pluginname=plugindef()<br>
if finenv.IsRGPLua then require('mobdebug').start() end<br>
local measure=finale.FCMeasure()<br>
measure:Load(4)<br>
local beatcharts= measure:CreateBeatChartElements()<br>
local beatchart2<br>
for beatchart2 in each(beatcharts) do<br>
print("BC2",measure.ItemNo,beatchart2.ItemCmper,beatchart2.ItemInci,beatchart2.MeasurePos,beatchart2.HorizontalPosition,beatchart2.NextHorizontalPosition,beatchart2:CalcWidth(),beatchart2.MinimumPosition)<br>
end<br>
<br>
Before RGP Lua v0.66 (here JW Lua 0.54)<br>
BC2 4 4 0 4096 336 0 0<b> 641</b><br>
BC2 4 4 1 0 0 84 84 0<br>
BC2 4 4 2 1024 84 116 32 64<br>
BC2 4 4 3 1280 116 148 32 125<br>
BC2 4 4 4 1536 148 200 52 177<br>
BC2 4 4 5 2048 200 336 136 218<br>
<br>
RGP Lua v0.66<br>
"BC2" 4 4 0 4096 336 0 0 <b>0</b>
-- 641 missing!<br>
"BC2" 4 4 1 0 0 84 84 0<br>
"BC2" 4 4 2 1024 84 116 32 64<br>
"BC2" 4 4 3 1280 116 148 32 125<br>
"BC2" 4 4 4 1536 148 200 52 177<br>
"BC2" 4 4 5 2048 200 336 136 218<br>
<br>
Any ideas?<br>
<br>
Jan<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Am 11.02.2023 um 18:01 schrieb Robert
Patterson:<br>
</div>
<blockquote type="cite"
cite="mid:CAACncestcBrvG8cuQ7CuuSFbfj9sS75mPCrzdjYE+2gBBdioCg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div dir="ltr">
<div>Okay, I will leave it. I am adding some additional
properties for clarity.</div>
<div><br>
</div>
<div>The main concept that is missing is the concept of
transitioning the beat chart from automatic to manual. This
is a concept I discovered after extensive
reverse-engineering of Finale behavior. Unfortunately, I
didn't get the comments into the PDK before Jari withdrew
from working on it.</div>
<div><br>
</div>
<div>You basically cannot edit a beat chart unless you first
transition it to a manual beat chart. Finale does this when
the user manually edits it with the beat chart handles. I'm
going to add a method on FCBeatChartElements to do it
programmatically.</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, Feb 11, 2023 at
10:53 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> Robert,<br>
<br>
I use both classes a lot in Perfect Layout.<br>
Though it still sometimes seems like a puzzle (or
incomplete?) to me too.<br>
Adding more properties would be fine, but
changing/splitting the whole thing would have massive
impact on the spacing algorithms from Perfect Layout.<br>
<br>
If it really makes sense to you to change it, maybe you
could keep FCBeatChartElement(s) and add an alternative
implementation with a new name, so that the old one still
can be used. Not so nice, but very pragmatic ;-)<br>
<br>
Jan<br>
<br>
<div>Am 11.02.2023 um 16:46 schrieb Robert Patterson:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>Does anyone use FCBeatChartElement or
FCBeatChartElements? It appears to be incomplete to
me, and I would also like to split the header out
into its own class. This would be a breaking change,
so I am not sure I'll do it. But I thought I would
poll the group.</div>
<div><br>
</div>
<div>Robert</div>
<div><br>
</div>
</div>
<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>
</div>
</blockquote>
</div>
</blockquote>
<br>
</div>
</body>
</html>