1.0.12 • Published 1 month ago

rad.js v1.0.12

Weekly downloads
3
License
ISC
Repository
github
Last release
1 month ago

chord.js

:tophat: Get any chord/scale/scaleChords you want.

More info in https://moayuisuda.github.io/chord.js/

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'});
1.0.12

1 month ago

1.0.10

2 months ago

1.0.9

2 months ago

1.0.8

2 months ago

1.0.7

2 months ago

1.0.6

2 months ago

1.0.0

4 years ago