1.1.7 • Published 3 years ago

frettable v1.1.7

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

frettable

determine if a set of notes can be physically fretted on guitar

Installation

npm install frettable --save

Usage

Frettable takes an array of notes, each representing the fret on a standard 6-string guitar. An open note is represented as 0, and a muted note as -1. An open D chord would look like [-1, -1, 0, 2, 3, 2]

Based on the possible fingerings, frettable will determine whether or not the chord is "frettable."

const frettable = require('frettable');
let chord;

chord = [-1, -1, 0, 2, 3, 2]; // D chord
console.log(frettable(chord)); // true

chord = [1, 2, 3, 4, 5, 6];
console.log(frettable(chord)); // false - this chord is impossible to fret
1.1.7

3 years ago

1.1.6

4 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.0

9 years ago

0.1.0

9 years ago

0.0.2

10 years ago

0.0.1

10 years ago