[JW Lua] Create a chord suffix

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Wed Sep 10 16:12:27 CEST 2014


On 2014-09-09 17:28, Chris wrote:

> How create (or modify) a chord suffix ?
> I don't understand the "ChordSuffixID". What is the object (a
> "ChordSuffixElements") ?

Yes, it's the FCChordSuffixElements class that it maps to, which is a 
collection containing all the elements of a chord suffix.

There currently is no "master class" that you can use with LoadAll(), 
however. The following code will browse through the chord suffixes.

---
local elements = finale.FCChordSuffixElements()
local itemno = 1
while true do
     elements:LoadAllForItem(itemno)
     if elements:IsEmpty() then break end
     itemno = itemno + 1
end
itemno = itemno - 1
print (itemno, "chord suffixes total")
---

Best regards,

Jari Williamsson








More information about the JWLua mailing list