guitarneck

1.0.2 • Public • Published

Guitar neck using D3

Simple class wrapper in a style I liked, based on code here, so thank you A. Whitty.

The API is super simple, and requires D3 & tonal.js:

  const w = 1024,
    h = 300;
  const svg = d3.create("svg").attr("viewBox", [0, 0, w, h]);

  let scale = key + " " + scaleType;

  new GuitarNeck(svg).size(w, h).render(scale);

  return svg.node();

See it live in action at Observable: https://observablehq.com/@euphrasiologist/scales

Package Sidebar

Install

npm i guitarneck

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

21.2 kB

Total Files

6

Last publish

Collaborators

  • euphrasiologist