fre

frettable

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

Showing:

Popularity

Downloads/wk

9

GitHub Stars

5

Maintenance

Last Commit

4mos ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100