<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
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>
</body>
</html>