chords-transpose
v1.1.1
Published
Chords pitch changer
Downloads
4
Readme
How to use it?
- just call the function transpose(chord, increment or decrement)
Example:
const chords = document.querySelectorAll('.chord');
// Transpose all chord
chords.forEach(chord=>{
let chordValue = chord.textContent;
// Increment
chord.textContent = transpose(chordValue, 'increment')
// Decrement
chord.textContent = transpose(chordValue, 'decrement')
})