A .NET library for representing and handling musical keys (major/minor) with descriptive attributes.
MusicKeyenum with key descriptions (short and long name, major/minor mode)MusicKeyDescriptionAttributefor describing each key- Extension methods:
GetShortName()- returns the short name of the keyGetLongName()- returns the full name of the keyIsMajor()- indicates if the key is major
using MusicKeys.Enums;
using MusicKeys.Extensions;
var key = MusicKey.CSharpMajor;
Console.WriteLine(key.GetShortName()); // C#
Console.WriteLine(key.GetLongName()); // C# major
Console.WriteLine(key.IsMajor()); // True- NuGet package:
MusicKeys - Target frameworks: .NET Standard2.0 (compatible with .NET Framework4.6.1+, .NET Core2.0+, and modern .NET)
Apache-2.0