Arkham/elm-chords/2.0.1

NOTE: the latest version is 3.0.0

Chords.Chart

Export a chord voicing to SVG

type alias Config =
{ height : Int
, width : Int
, hPaddingPct : Float
, vPaddingPct : Float
, minFrets : Int
}

Contains options to customize SVG.

  • height: relative height within svg viewbox
  • width: relative width within svg viewbox
  • hPaddingPct: percentage of width to use as horizontal padding
  • vPaddingPct: percentage of height to use as vertical padding
  • minFrets: minimum number of frets to display in a chart

Charts

view : String -> Voicing -> Svg msg

Render a chord voicing and a label to SVG.

viewWith : Config -> String -> Voicing -> Svg msg

Render a chord voicing and a label to SVG passing along customizations.