MusicTheory.Guitar 3.0.0

dotnet add package MusicTheory.Guitar --version 3.0.0
                    
NuGet\Install-Package MusicTheory.Guitar -Version 3.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MusicTheory.Guitar" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MusicTheory.Guitar" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MusicTheory.Guitar" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MusicTheory.Guitar --version 3.0.0
                    
#r "nuget: MusicTheory.Guitar, 3.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MusicTheory.Guitar@3.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MusicTheory.Guitar&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MusicTheory.Guitar&version=3.0.0
                    
Install as a Cake Tool

MusicTheory.Guitar

Guitar companion to MusicTheory: tunings, chord voicings and chord-diagram geometry as plain data. No Blazor, ASP.NET Core or JavaScript dependency, so any UI (Blazor, MAUI, a web front end, a CLI) can render it.

using MusicTheory.Guitar;

var voicings = new GuitarVoicingProvider().GetVoicings(ChordSymbol.Parse("F#m7"));
voicings[0].ToTab();    // "242222"
voicings[0].Barre;      // Barre(2, 0, 5): index finger across fret 2

// Capo: frets are relative to the capo; the shape is named, the sound is transposed.
var g = new GuitarVoicingProvider().GetVoicings(ChordSymbol.Parse("G"), new VoicingOptions(Capo: 2))[0];
g.Sound(Tuning.Standard, capo: 2); // A major

Every ChordType on every root has at least one voicing in standard tuning: curated open shapes, movable E/A/D-form barres and a fretboard search, ranked easiest first.

Source and issues: https://github.com/phmatray/MusicTheory

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MusicTheory.Guitar:

Package Downloads
MusicTheory.Guitar.Blazor

Blazor add-on for MusicTheory.Guitar: light chord playback (plucked-string Web Audio, no WASM) for guitar voicings or any MIDI notes.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0 48 11/21/2026
2.0.0 55 11/21/2026
1.7.0 146 10/17/2026
1.6.0 228 10/17/2026