rad.js

1.0.12 • Public • Published

chord.js

🎩 Get any chord/scale/scaleChords you want.

import {chord, scale, scaleChords} from 'rad.js'

chord('Cm7add11omit5/Gb'); // ["Gb", "C", "Eb", "Bb", "F"]
chord({root: 'C', type: 'm7', add: ['11'], omit: ['5'], on: 'Gb'}); // ["Gb", "C", "Eb", "Bb", "F"]
chord('Cm7add11omit5/Gb', 4, '#'); // ["Gb3", "D#4", "A#4", "F5", "C5"]

scale({root: 'C', type: 'aeolian'}); // ["C", "D", "Eb", "F", "G", "Ab", "Bb", "C"]
scale({root: 'C', type: 'aeolian'}, 4, '#'); // ["C4", "D4", "D#4", "F4", "G4", "G#4", "A#4", "C5"]

scaleChords({root: 'C', type: 'ionian'}); // ["C", "Dm", "Em", "F", "G", "Am", "Bdim"]

Or you can just use it as a global variable

<script src="./chord.js"></script>

chord.chord('Cm7add11omit5/G');
chord.scale({root: 'C', type: 'ionian'});
chord.scaleChords({root: 'C', type: 'ionian'});

Readme

Keywords

Package Sidebar

Install

npm i rad.js

Weekly Downloads

2

Version

1.0.12

License

ISC

Unpacked Size

1.91 MB

Total Files

28

Last publish

Collaborators

  • moayuisuda