Crate fretboard_layout
source · [−]Expand description
Fretboard_layout
is a library for turning a set of specifications into a
complete template of a stringed musical instrument fretboard, such as a
guitar, banjo, or mandolin.
Sample output
Usage
use fretboard_layout::{Config,Specs};
// the [Specs] struct constains the specifications used to generate the svg
let mut specs = Specs::default();
specs.set_multi(Some(615.0));
specs.set_scale(675.0);
// the (optional) [Config] struct fine tunes the visual representation
let mut cfg = Config::default();
cfg.set_line_weight(0.5);
let svg = specs.create_document(Some(cfg));
Structs
All of the configuration values which can be set in config.toml get stored in this struct
The font used to print the description in the output file
This struct contains the user data used to create the svg output file
Enums
The weight, or style, of the font
Whether the output represents a right handed or left handed neck style
Whether to use Metric (millimeters) or Imperrial (inches) measurements
Whether to output a traditional Monoscale
style neck with the same scale
across it’s entire width, or a modern Multiscale
neck, with a shorter scale
along the treble side, also known as fan fret.