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

ParseKeySignature() private method

Converts a keysignature string into the assocciated value.
private ParseKeySignature ( String str ) : int
str String the string to convert
return int
        private int ParseKeySignature(String str)
        {
            switch (str.ToLower())
            {
                case "cb": return -7;
                case "gb": return -6;
                case "db": return -5;
                case "ab": return -4;
                case "eb": return -3;
                case "bb": return -2;
                case "f": return -1;
                case "c": return 0;
                case "g": return 1;
                case "d": return 2;
                case "a": return 3;
                case "e": return 4;
                case "b": return 5;
                case "f#": return 6;
                case "c#": return 7;
                default: return 0; // error("keysignature-value", AlphaTexSymbols.String, false); return 0
            }
        }