AlphaTab.Importer.AlphaTexImporter.ParseClef C# (CSharp) Method

ParseClef() private method

Converts a clef string into the clef value.
private ParseClef ( string str ) : Clef
str string the string to convert
return Clef
        private Clef ParseClef(string str)
        {
            switch (str.ToLower())
            {
                case "g2":
                case "treble":
                    return Clef.G2;
                case "f4":
                case "bass":
                    return Clef.F4;
                case "c3":
                case "tenor":
                    return Clef.C3;
                case "c4":
                case "alto":
                    return Clef.C4;
                case "n":
                case "neutral":
                    return Clef.Neutral;
                default:
                    return Clef.G2; // error("clef-value", AlphaTexSymbols.String, false);
            }
        }