music-fns
music-fns copied to clipboard
Chord progressions
any idea on how we could handle chord progressions?
https://en.wikipedia.org/wiki/Chord_progression
I've done the basics of this on https://plypp.net. There it's basically just a switch case returning the intervals (as midi number) between the root and the rest of the keys in the chord.
Need to re-write the intervals a bit first, thank for the help :)
Oh, read a bit closer now. This was about progression 🙈 I see music-fns already has some chords; done very similar to how I did it on Plypp! I do have some more chords though. Can make a PR for that if we want that in here? (And I can refactor my code out and use music-fns instead! )
That would be awesome :) Feel free to do so.
I don't quite get the naming in this repo though. Using the naming convention of MINOR_MAJOR_SEVENTH
and MAJOR_SEVENTH
etc will become very cumbersome when we do sus2, sus7, add11 etc. Can we just name them like they are in regular notation? Chord['sus2']
instead of Chord.SUSPENDED_SECOND
?
Hmm, not sure. In the case of suspended, I get it.
But I think MAJOR / MINOR etc should be possible, no? We could create aliases Like I did for the intervals?
@duivvv Made a proposal here: https://github.com/madewithlove/music-fns/pull/50 :)