#graphics #design #vector-graphics #lutherie

fretboard_layout

Generate an svg template of a musical instrument fretboard

9 releases

0.5.1 Nov 8, 2022
0.5.0 Oct 24, 2022
0.3.1 Jan 26, 2022
0.2.0 Dec 27, 2021
0.1.2 Jul 25, 2021

#186 in Images

37 downloads per month
Used in gfret

BSD-2-Clause

49KB
1.5K SLoC

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));

Dependencies

~1.3–2.9MB
~61K SLoC