4 stable releases
new 2.1.1 | Dec 3, 2024 |
---|---|
2.1.0 | Dec 2, 2024 |
2.0.1 | Nov 27, 2024 |
2.0.0 | Nov 23, 2024 |
#273 in Audio
586 downloads per month
35KB
844 lines
Rust library to create guitar chord diagrams in SVG format.
Use it online at chordgenerator.xyz
Usage
This crate contains a library and a command line binary.
Run the cli binary locally with
cargo run -- -f "x,x,x,2,3,2" -p "x,x,x,2,3,1" -t "D"
cargo run -- --help
Creates guitar chord diagrams
Usage: chord_cli [OPTIONS]
Options:
-f, --frets <FRETS> Notes to fret, 6 comma-separated values. 0 for open string, -1 to skip a string.
-p, --fingers <FINGERS> Suggested fingering, 6 comma-separated values. 0 for open string, x to skip a string.
-t, --title <TITLE> Name of chord. Optional.
-s, --suffix <SUFFIX> Chord suffix to use in title. Optional.
-d, --hand <HANDEDNESS> Left or right handedness. `left` or `right`. Optional, defaults to right.
-m, --mode <MODE> Light or dark mode `light` or `dark`. Optional, defaults to light
-b, --background Add a background to image
-h, --help Print help information
-V, --version Print version information
Dependencies
~8–16MB
~218K SLoC