1.1.1 • Published 1 year ago

chords-transpose v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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