<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi All,<o:p></o:p></p><p class=MsoNormal>I've just about completed a couple of scripts that convert a single vocal part into a mensural notation equivalent. One script combines all the measures in a system into a single measure. The second script spaces the notes with a really convoluted algorithm; rests get less space than notes which are equally spaced unless they are part of a ligature in which case they are butted up against one another. See the sample jpg. The problem I'm having is in calculating the measure width in EPVUs. <o:p></o:p></p><p class=MsoNormal>Try this: In any measure in one of your parts, bring up the beat chart for any note. The total width will be some number in EPVUs according the the documentation. Now move any of the notes using the handles in the measure tool. Now bring up the beat chart and look at the total width, again in EPVUs supposedly. The measure width hasn't changed, but the value has. If I use the former value in my script, the notes are scrunched together (see the third line of the attached jpg). If I use the latter value, my script works as intended. Here's what I use to get the width:<o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;color:#C00000'> </span><span style='font-size:10.0pt'>local bce = measure:CreateBeatChartElements()<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> local bc = finale.FCBeatChartElement()<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> bc = bce:GetItemAt(0)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'> width = bc.FullSpan<span style='color:#C00000'><o:p></o:p></span></span></p><p class=MsoNormal>The width returned from bc.FullSpan matches the two values I get with the beat chart test above.<o:p></o:p></p><p class=MsoNormal>Any ideas of what is happening?<o:p></o:p></p><p class=MsoNormal>My scripts work but I don't want to have to manually move a note in every system to make it work.<o:p></o:p></p><p class=MsoNormal>Thanks for any insight.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Pat<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I plan on posting my scripts soon. As of now they are 15 pages of code. As I said, it's a weird algorithm.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>