fretboard_layout

Crates.iofretboard_layout
lib.rsfretboard_layout
version0.7.1
sourcesrc
created_at2021-07-22 04:43:46.319459
updated_at2024-01-23 00:02:59.284443
descriptionGenerate an svg template of a musical instrument fretboard
homepagehttps://jeang3nie.codeberg.page
repositoryhttps://codeberg.org/jeang3nie/fretboard-layout
max_upload_size
id425769
size65,623
Nathan Fisher (nfisher1226)

documentation

README

Fretboard Layout

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
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), Some(8.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));
Commit count: 0

cargo fmt