<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Jari,<br>
<br>
when I call FCArticulation:CalcFlippedSymbolUsed on hidden
articulations (i.e. "Show" unchecked on the articulation), it takes
the processing speed is decreased by a factor of 10. It gets worse
when a hide articulation staff style is used.<br>
Articulations in "Show" state: ca. 0.015s<br>
Articulations in "Hide" state: ca. 0.145s<br>
Articulations in "Show" state, but with a "Hide Articulations Staff
Style": ca. 0.155s<br>
Articulations in "Hide" state, but with a "Hide Articulations Staff
Style": ca. 0.166s<br>
<br>
Calculated with this script and the attached document <br>
(to calculate the "Show" state select all articulations and check
"Show"):<br>
for i=1,10,1 do<br>
for e in eachentry(finenv.Region()) do<br>
local arts=e:CreateArticulations()<br>
for a in each(arts) do<br>
local flipped=a:CalcFlippedSymbolUsed()<br>
end<br>
end<br>
end<br>
<br>
I was recently working on a huge score where this calculation only
took more than a minute, because of many hidden articulations. My
current workaround is to ignore all articulations that are set to
Visible=false.<br>
<br>
I don't know how you this solved in your code. Do you have to
manually make them visible, update the metrics and then do the
calculation? This would explain the calculation time.<br>
BTW, the same goes for CalcMetricPos if the articulation is
invisible.<br>
<br>
Best,<br>
Jan<br>
</body>
</html>