<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
>2. The code does not seem to work with chords, fretboards, or
lyrics<br>
I am not sure about chords/fretboards, but indeed it does not work
with lyrics.<br>
<br>
That is a known bug which also effects my Perfect Layout. <br>
My workaround is to run TG Tools (Lyrics->Adjust Baselines)
before:<br>
this plug-in does adjust the lyrics baseline (and is also a prove
that it is theoretically possible in the Finale PDK). <br>
In JW Lua it only works if you had already manually adjusted a
lyrics baseline before - which probably sets a "CustomOffset=true"
flag and which seems to be missing in JW Lua.<br>
<br>
This bug is described on my JW Lua bug list from 2017 which included
all open JW Lua bugs reported on the mailing until 2017 (not
including those reported later):
<a class="moz-txt-link-freetext" href="https://elbsound.studio/download.php?f=JWLuaBugAndWishList.doc">https://elbsound.studio/download.php?f=JWLuaBugAndWishList.doc</a><br>
It was originally reported and discussed on the mailing list in
August 2015.<br>
<br>
Jan<br>
<br>
<br>
<div class="moz-cite-prefix">Am 15.09.2019 um 00:06 schrieb Nick
Mazuk:<br>
</div>
<blockquote type="cite"
cite="mid:8DAD6B3A-A845-4F53-8A06-032E9892E283@nickmazuk.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Got a script working for adjusting the expression baselines above
the staff. However, I’m running into two problems:<br class="">
<br class="">
1. It seems to only work in Score View (not restricted from the
Plugin Def)<br class="">
2. The code does not seem to work with chords, fretboards, or
lyrics<br class="">
<br class="">
Here’s the working code:<br class="">
<br class="">
<font class="" face="Courier">local region = finenv.Region()<br
class="">
local start_measure = region:GetStartMeasure()<br class="">
<br class="">
local systems = finale.FCStaffSystems()<br class="">
systems:LoadAll()<br class="">
local system = systems:FindMeasureNumber(start_measure)<br
class="">
<br class="">
local baselines = finale.FCBaselines()<br class="">
baselines:LoadAllForSystem(finale.BASELINEMODE_EXPRESSIONABOVE,
system:GetItemNo())<br class="">
<br class="">
function ToEvpus(text)<br class="">
local str = finale.FCString()<br class="">
str.LuaString = text<br class="">
return str:GetMeasurement(finale.MEASUREMENTUNIT_DEFAULT)<br
class="">
end<br class="">
<br class="">
for bl in each(baselines) do<br class="">
bl.VerticalOffset = bl.VerticalOffset + ToEvpus('1s')<br
class="">
bl:Save()<br class="">
end</font><br class="">
<br class="">
The only change I made to the other versions are changing<br
class="">
<br class="">
<font class="" face="Courier">baselines:LoadAllForSystem(finale.BASELINEMODE_EXPRESSIONABOVE,
system:GetItemNo())<br class="">
</font><br class="">
to<br class="">
<br class="">
<font class="" face="Courier">baselines:LoadAllForSystem(finale.BASELINEMODE_CHORD,
system:GetItemNo())<br class="">
</font><br class="">
From what I’ve read, this change should work, but it isn’t. Any
ideas? I’ve spent a couple hours already trying things out.
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
</div>
<div class="">Nick</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
</body>
</html>