| Crates.io | chord-gen |
| lib.rs | chord-gen |
| version | 2.1.1 |
| created_at | 2024-11-23 15:24:47.701547+00 |
| updated_at | 2024-12-03 10:45:49.745687+00 |
| description | Create SVGs of guitar chords |
| homepage | https://github.com/whostolemyhat/chord-gen |
| repository | https://github.com/whostolemyhat/chord-gen |
| max_upload_size | |
| id | 1458525 |
| size | 63,659 |
Rust library to create guitar chord diagrams in SVG format.
Use it online at chordgenerator.xyz
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