/Fretboards.jl

Julia package for visualizing chords on the guitar fretboard.

Primary LanguageJuliaOtherNOASSERTION

Fretboards.jl

lifecycle build codecov.io

Julia package for visualizing chords on the guitar fretboard.

Example

Visualizing an Esus4 chord.

using Fretboards, Crayons, ANSIColoredPrinters
using Fretboards.Intervals

fb = Fretboard(STANDARD_TUNING, 12);
let root = pitch"E"
    for (mark, semitones, color) in [("1", 0, :red),
                                     ("4", P4, :yellow),
                                     ("5", P5, :green)]
        annotate_matches!(x -> x.pitch  root + semitones,
                          Annotation(mark, Crayon(foreground = color)), fb)
    end
end