<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">After testing it, I arrive to the same conclusion. I use FCLuaIterator() often. Just never had to specify a region of 0-0.<div class=""><br class=""></div><div class="">The behaviour is not the same with “in eachentry” which will see an entry positioned at zero in a region of 0-0.</div><div class=""><br class=""></div><div class=""><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span class="Apple-style-span" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; orphans: 2; widows: 2; border-collapse: separate; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class=""><span style="font-style: normal;" class=""><br class="Apple-interchange-newline"><br class=""></span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div style="font-family: Helvetica; font-style: normal; font-weight: normal; font-size: 12px;" class=""><span style="text-align: -webkit-auto; -webkit-text-decorations-in-effect: none; font-family: "Times New Roman", serif; font-size: 16px;" class="">¯\_(</span><span style="text-align: -webkit-auto; -webkit-text-decorations-in-effect: none; font-family: "MS Gothic"; font-size: 16px;" class="">ツ</span><span style="text-align: -webkit-auto; -webkit-text-decorations-in-effect: none; font-family: "Times New Roman", serif; font-size: 16px;" class="">)_/¯</span></div><div style="font-family: Helvetica; font-style: normal; font-weight: normal; font-size: 12px;" class=""><span class="Apple-style-span" style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; border-collapse: separate; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Simon Leclerc</div><div class="">60, Mirabelle</div><div class="">Ste-Agathe-des-Monts, Québec</div><div class="">J8C 0W9</div><div class=""><a href="mailto:simon@prodsl.ca" class="">simon@prodsl.ca</a></div></div></span></div></div><div style="font-family: Helvetica; font-style: normal; font-weight: normal; font-size: 12px;" class=""><br class=""></div></div></span><br class="Apple-interchange-newline" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; orphans: 2; widows: 2;"><br class="Apple-interchange-newline" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On May 27, 2022, at 20:53, Robert Patterson <<a href="mailto:robert@robertgpatterson.com" class="">robert@robertgpatterson.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">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 class=""></div><br class=""><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" class="">jan@angermueller.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="">
Robert,<br class="">
<br class="">
I noticed a problem with FCLuaIterator, probably caused by a <
instead of <= operator.<br class="">
<br class="">
According to the documentation the ForEachEntry operator should work
like the each operator on entries.<br class="">
<br class="">
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 class="">
I.e. you always have to set EndMeasurePos to at least
StartMeasurePos+1 to make ForEachEntry work for a single measure
position.<br class="">
<br class="">
Test code: (should show all entries with articulations in measure 1
staff 1 measure position 0)<br class="">
<br class="">
function ArticulationCallback(e)<br class="">
print(e.MeasurePos)<br class="">
end<br class="">
<br class="">
local region=finale.FCMusicRegion()<br class="">
region.StartMeasure=1<br class="">
region.EndMeasure=1<br class="">
region.StartStaff=1<br class="">
region.EndStaff=1<br class="">
region.StartMeasurePos=0<br class="">
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 class="">
local iterator = finale.FCLuaIterator()<br class="">
iterator:AddEntryFilter(finale.LIEFILTER_ARTICULATIONFLAG,
finale.LILOGIC_AND)<br class="">
iterator:ForEachEntry(region,ArticulationCallback) <br class="">
<br class="">
Could you please fix this in the next update?<br class="">
Or - should we keep it like this for compatibility reasons - add a
line to the documentation.<br class="">
<br class="">
Jan<br class="">
</div>
_______________________________________________<br class="">
JWLua mailing list<br class="">
<a href="mailto:JWLua@jwmusic.nu" target="_blank" class="">JWLua@jwmusic.nu</a><br class="">
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank" class="">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br class="">
</blockquote></div>
_______________________________________________<br class="">JWLua mailing list<br class=""><a href="mailto:JWLua@jwmusic.nu" class="">JWLua@jwmusic.nu</a><br class="">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu<br class=""></div></blockquote></div><br class=""></div></body></html>