[JW Lua] Lyrics baselines

Bart Visser bartvisser at me.com
Sat Nov 7 16:12:44 CET 2015


Hi Chris,

I use this function to reset all lyric-baselines globally:


---------
function ResetGlobalBaselines(firstLevel, defaultDistance)
  local baselineModesTable = {finale.BASELINEMODE_LYRICSVERSE, finale.BASELINEMODE_LYRICSCHORUS, finale.BASELINEMODE_LYRICSSECTION}
  local baselineObject = finale.FCBaseline()
  for _, baselineMode in pairs(baselineModesTable) do
    for i=1,10 do -- resets lyricNo 1-10
      local newOffset = firstLevel - ((i-1)*defaultDistance)
      baselineObject:LoadDefaultForLyricNumber(baselineMode, i)
      baselineObject.VerticalOffset = newOffset
      baselineObject:Save()
    end
  end
end

local firstLevel = -149 -- in EVPUs
defaultDistance = 55 -- Distance between baseline-levels in EVPUs

ResetGlobalBaselines(firstLevel, defaultDistance)
---------


Maybe this helps.

Cheers,


Bart Visser


> Op 7 nov. 2015, om 15:13 heeft Chris <marcel.denio at gmail.com> het volgende geschreven:
> 
> Hello Jari
> 
> I want to reset all the lyrics global baselines.
> 
> If I understood correctly :
> - LoadAllForPiece -> second triangle
> - LoadAllForSystem -> third triangle
> And the first triangle is the global value.
> 
> But where are the global baselines (LoadAll return 0  and LoadAllForPiece doesn't return them)
> I observe that the first ten defaut baselines are defined (with LoadDefaultForLyricNumber)
> and when moved the first triangle lyrics (11,12, ...) other baselines are created.
> But where ?
> 
> Best regards
> 
> Chris
> 
> 
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu





More information about the JWLua mailing list