New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

guitar-chord-definitions

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guitar-chord-definitions

Definitions for guitar chords and keys.

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Guitar Chord Definitions

Definitions for guitar chords and keys.

Install

npm i guitar-chord-definitions

Chords

import chords from 'guitar-chord-definitions/dist/chords'

chords.find(({ shortName }) => shortName === 'A')

Output

{
  fullName: 'A major',
  shortName: 'A',
  strings: {
    6: doNotPlayString
  },
  frets: {
    2: {
      2: 3,
      3: 1,
      4: 2
    }
  },
  isCommonChord: true
}

Common chords

A flag to indicate the chord is easier for new guitar players.

Copying chords

Some chords are identical to other chords, so if it has a copyFrom property you should copy from that other chord.

Keys

import keys from 'guitar-chord-definitions/dist/keys'

keys.find(({ shortName }) => shortName === 'C')

Output

{
  fullName: 'Key of C major',
  shortName: 'C',
  chords: {
    [I]: 'C',
    [ii]: 'Dm',
    [iii]: 'Em',
    [IV]: 'F',
    [V]: 'G',
    [vi]: 'Am',
    [vii]: 'Bdim'
  },
  chordProgressions: [
    [I, IV, V],
    [I, vi, IV, V],
    [ii, V, I]
  ],
  isCommonKey: true
}

Common keys

A flag to indicate the key is easier for new guitar players.

Tests

npm test

FAQs

Package last updated on 28 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc