[JW Lua] JW Lua, Beta 0.18 available

Chris marcel.denio at gmail.com
Thu May 1 10:04:24 CEST 2014


It's OK for the chord suffix.
Here's a function that converts the suffix in a string (FCString).


function createSuffixString(chord)
     local str = finale.FCString()
     local suffix=chord:CreateChordSuffixElements()
     if suffix == nil then return str end

     for character in each(suffix) do   -- ChordSuffixElement

         if character.PrefixFlat then str.AppendLuaString("b")
         elseif character.PrefixSharp then str.AppendLuaString("#")
         elseif character.PrefixPlus then str.AppendLuaString("+")
         elseif character.PrefixMinus then str.AppendLuaString("-") end

         if character.NumberRepresentation then
            str:AppendInteger(character.Symbol)
         else
             str:AppendCharacter(character.Symbol)
         end

     end

     return str
end


Chris





More information about the JWLua mailing list