[JW Lua] Mirrors measures

Chris marcel.denio at gmail.com
Tue Dec 2 10:46:08 CET 2014


Jari

Attached is an extract of a score where I have the problem with this script:

------------------------------------------------------
region = finenv.Region()
if region:CalcStaffSpan () ~= 2 then
     finenv.UI():AlertInfo("Select two staves","Grace notes - Tab")
     return
end

local memPos = {}
local ind=1
local indNew=1

for e in eachentrysaved(finenv.Region()) do

    if e.Staff == region.StartStaff and e.GraceNote then
         memPos[ind] = e.ManualPosition
         ind = ind + 1

     elseif e.Staff == region.EndStaff and e.GraceNote then
         e.ManualPosition=memPos[indNew]
         indNew = indNew +1
    end

end
------------------------------------------------------

(This script sets grace notes position for tablature because there is a 
problem with Finale - you must select 2 staves).
After you run the script, execute "File Maintenance" and then there is a 
big problem.

Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Mirror - test.musx
Type: application/octet-stream
Size: 38926 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20141202/7bfb16d6/attachment.obj>


More information about the JWLua mailing list