PianoKeyEmulator.Note.FromString C# (CSharp) 메소드

FromString() 공개 정적인 메소드

public static FromString ( string str ) : Note
str string
리턴 Note
        public static Note FromString(string str)
        {
            byte octave = byte.Parse(str.Last().ToString());
            var tone = str.Substring(0, str.Length - 1).Replace('#', 'd').ConvertToEnum<Tones>();

            return new Note(octave, tone);
        }