chord-gen

Crates.iochord-gen
lib.rschord-gen
version2.1.1
created_at2024-11-23 15:24:47.701547+00
updated_at2024-12-03 10:45:49.745687+00
descriptionCreate SVGs of guitar chords
homepagehttps://github.com/whostolemyhat/chord-gen
repositoryhttps://github.com/whostolemyhat/chord-gen
max_upload_size
id1458525
size63,659
James Baum (whostolemyhat)

documentation

README

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
Commit count: 58

cargo fmt