Section Preferences

Preferences functions: workaround for bogus or missing function that read global preferences.

Summary

Return typeFunction and summary
stringGetGlobalSetting(string settingName)
Reads a line from global settings file, when MyrScript has no built-in function to get the value of a global setting.
string, int, int, stringGetPreferredFont(string object)
Get preferred font from Global settings > Fonts

Functions

GetGlobalSetting(string settingName)

Reads a line from global settings file, when MyrScript has no built-in function to get the value of a global setting.

ParameterTypeDefaultDescription
settingNamestring settingName
Return
string: Found value, or nil if not found.

GetPreferredFont(string object)

Get preferred font from Global settings > Fonts

ParameterTypeDefaultDescription
objectstring One of the items in the global settings dialog in English: "Staff name", "Break text", "Tempo", "Rules names", "Effects & ornaments", "Tablature key", "Tablature grace note", "Tablature note", "Chord grid name", "Chord grid display", "Chord grid summary", "Key summary", "Karaoke line", "Ruler", "Help window", "Array", "Pop up menus"
Returns
string: Font name, or nil if not found
int: Face, or nil if not found
int: Size, or nil if not found
string: color in RGB format, "000000" for now as it may be impossible to parse.