示例#1
0
        private static string GetNoteName(Keys.Key key, int i)
        {
            var a = Accidental.n;
            var n = key.GetSheetNoteName(i, out a);

            var mod = "";

            switch (a)
            {
            case Accidental.s:
                mod = "#";
                break;

            case Accidental.x:
                mod = "x";
                break;

            case Accidental.f:
                mod = "-";
                break;

            case Accidental.ff:
                mod = "--";
                break;
            }
            return(n.ToString() + mod);
        }
示例#2
0
        private static string GetNoteNames(Keys.Key key, List <int> notes)
        {
            string name = "";

            for (int i = 0; i < notes.Count(); i++)
            {
                name += GetNoteName(key, notes[i]);
            }
            return(name);
        }