public static AccidentalKind GetAccidentalKind(this MajorKey majorKey) { var result = majorKey < MajorKey.C ? AccidentalKind.Flat : AccidentalKind.Sharp; return(result); }
/// <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; }
public static Note GetRoot(this MajorKey majorKey) { var result = _majorKeyNotes[majorKey]; return(result); }
public Key this[MajorKey majorKey] => _byEnumIndexer[majorKey];