Example #1
0
        public static AccidentalKind GetAccidentalKind(this MajorKey majorKey)
        {
            var result = majorKey < MajorKey.C ? AccidentalKind.Flat : AccidentalKind.Sharp;

            return(result);
        }
Example #2
0
 /// <inheritdoc />
 /// <summary>
 /// Creates a key instance (Major key).
 /// </summary>
 /// <param name="majorKey">The <see cref="MajorKey" />.</param>
 public Key(MajorKey majorKey) :
     this((int)majorKey)
 {
     KeyMode = KeyMode.Major;
 }
Example #3
0
        public static Note GetRoot(this MajorKey majorKey)
        {
            var result = _majorKeyNotes[majorKey];

            return(result);
        }
Example #4
0
 public Key this[MajorKey majorKey] => _byEnumIndexer[majorKey];