#vector-graphics #graphics #design #lutherie

fretboard_layout

Generate an svg template of a musical instrument fretboard

13 unstable releases (6 breaking)

0.8.0 Jan 20, 2024
0.7.0 Aug 27, 2023
0.6.0 Feb 18, 2023
0.5.1 Nov 8, 2022
0.1.2 Jul 25, 2021

#451 in Images

Download history 4/week @ 2024-01-17 4/week @ 2024-02-14 31/week @ 2024-02-21 12/week @ 2024-02-28 1/week @ 2024-03-06 19/week @ 2024-03-13

65 downloads per month
Used in gfret

BSD-2-Clause

50KB
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–3.5MB
~68K SLoC