Skip to content

Julia package for visualizing chords on the guitar fretboard.

License

Notifications You must be signed in to change notification settings

tpapp/Fretboards.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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