<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Pat<br>
<br>
<span id="result_box" class="" lang="en"><span class=""><span
id="result_box" class="" lang="en"><span class="">Here is an
excerpt from my script about "fullspan"<br>
<br>
</span></span>-------------------------------------<br>
local function methodBeatChart(musicregion,distanceprefs)<br>
finenv.UI():MenuCommand(finale.MENUCMD_NOTESPACING) -- pour
initialiser les beatcharts<br>
<br>
for noteentry in eachentrysaved(musicregion) do<br>
<br>
if noteentry.Duration == finale.WHOLE_NOTE and
noteentry:IsNote() then<br>
local cell = finale.FCCell(noteentry.Measure,
noteentry.Staff)<br>
local ts = cell:GetTimeSignature()<br>
<br>
-- seulement pour les mesures faisant la longueur
d'une ronde<br>
if ts.Beats * ts.BeatDuration == 4096 then<br>
noteentry.ManualPosition = 0 -- supprimer un
éventuel positionnement manuel<br>
<br>
local cm = cell:CreateCellMetrics()<br>
local beatchartelements =
finale.FCBeatChartElements()<br>
beatchartelements:LoadAllForItem(noteentry.Measure)<br>
<br>
-- calcul de la largeur de la ronde<br>
local wRonde = noteentry:CalcWidestNoteheadWidth
()<br>
<br>
-- spacebefore total (global + mesure)<br>
local spaceBefore = distanceprefs.SpaceBefore +
getSpaceBeforeOneMeasure(noteentry.Measure)<br>
<br>
-- coordonnée de la note (en EVPU) à partir du
début du Beat-Chart (après SpaceBefore)<br>
local xRonde = (cm.Width / 2) - (wRonde / 2) -
spaceBefore<br>
<br>
local fullspan<br>
for bce in each(beatchartelements) do<br>
if bce:GetInitElement() then -- 1° élément
(init)<br>
fullspan=bce.FullSpan<br>
else<br>
bce.MinimumPosition =0 -- avec les
altérations il est différent de 0<br>
bce.HorizontalPosition= fullspan *
xRonde/ cm.MusicWidth<br>
bce:Save()<br>
end<br>
end<br>
end<br>
end<br>
end<br>
<br>
finenv.UI():RedrawDocument() <br>
end<br>
</span></span><span id="result_box" class="" lang="en"><span
class="">-------------------------------------<br>
<br>
Chris<br>
</span></span><span id="result_box" class="" lang="en"><span
class=""></span></span>
</body>
</html>