Skip to content

pirtleshell/string-tunings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

string-tunings

🎸 API for the tunings of string instruments

Standard and common tunings for:

  • Guitar
  • Bass
  • Ukulele
  • Banjo
  • Mandolin
  • Cello
  • Viola
  • Violin

Install

The tunings are simply a JSON file that can be used anywhere.

$ npm install --save string-tunings

Usage

All instruments have a standard key. Many have more. The tunings are Strings on note letters, generally from low notes to high notes (ie. top to bottom string for guitar-like instruments, outermost to innermost for violin-like instruments).

var tunings = require('string-tunings');

tunings.guitar.standard
//=> "EADGBE"

tunings.guitar.open.G
//=> "DGDGBD"

tunings.banjo.sawmill
//=> "GDGBE"

tunings.toArray(tunings.ukulele.soprano)
//=> [ 'A', 'D', 'F#', 'B' ]

Contributing

Contributions are welcome. Keep the instruments alphabetically ordered for easy reading. Stay practical.

API

toArray

Convert the strings in the JSON to an array of note names.

example:

tunings.toArray(tunings.guitar.drop.Db)
//=> [ 'Db', 'Ab', 'Db', 'Gb', 'Bb', 'Eb' ]

tunings.toArray(tunings.violin.cajun)
//=> [ 'F', 'C', 'G', 'D' ]

License

MIT © 2016 Robert Pirtle

About

🎸 API for the tunings of string instruments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published