<div dir="ltr">I would be interested to hear from anyone else on this issue. I know someone said they were using FCLuaInterator. This would potentially be a breaking change.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 27, 2022 at 11:02 AM Jan Angermüller <<a href="mailto:jan@angermueller.com">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 noticed a problem with FCLuaIterator, probably caused by a <
instead of <= operator.<br>
<br>
According to the documentation the ForEachEntry operator should work
like the each operator on entries.<br>
<br>
But: if you set the EndMeasurePos==StartMeasurePos (e.g. both 0 in
the code below), then ForEachEntry won't detect entries on that
measure position. The each operator also shows all entries from that
measure position.<br>
I.e. you always have to set EndMeasurePos to at least
StartMeasurePos+1 to make ForEachEntry work for a single measure
position.<br>
<br>
Test code: (should show all entries with articulations in measure 1
staff 1 measure position 0)<br>
<br>
function ArticulationCallback(e)<br>
print(e.MeasurePos)<br>
end<br>
<br>
local region=finale.FCMusicRegion()<br>
region.StartMeasure=1<br>
region.EndMeasure=1<br>
region.StartStaff=1<br>
region.EndStaff=1<br>
region.StartMeasurePos=0<br>
region.EndMeasurePos=0 --- when it is set to 1, it will work.
When it's set to 0, it won't show any entries.<br>
local iterator = finale.FCLuaIterator()<br>
iterator:AddEntryFilter(finale.LIEFILTER_ARTICULATIONFLAG,
finale.LILOGIC_AND)<br>
iterator:ForEachEntry(region,ArticulationCallback) <br>
<br>
Could you please fix this in the next update?<br>
Or - should we keep it like this for compatibility reasons - add a
line to the documentation.<br>
<br>
Jan<br>
</div>
_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>