Skip to content

.NET 8 library containing an enum defining musical keys.

License

Notifications You must be signed in to change notification settings

KotBehamot/MusicKeys

Repository files navigation

MusicKeys

A .NET library for representing and handling musical keys (major/minor) with descriptive attributes.

Features

  • MusicKey enum with key descriptions (short and long name, major/minor mode)
  • MusicKeyDescriptionAttribute for describing each key
  • Extension methods:
  • GetShortName() - returns the short name of the key
  • GetLongName() - returns the full name of the key
  • IsMajor() - indicates if the key is major

Usage Example

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

Installation

  • NuGet package: MusicKeys
  • Target frameworks: .NET Standard2.0 (compatible with .NET Framework4.6.1+, .NET Core2.0+, and modern .NET)

License

Apache-2.0

About

.NET 8 library containing an enum defining musical keys.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages