A PHP implementation for the Krumhansl-Schmuckler musical key finding algorithm
How to use
- Import the module
- Initialise the KeyFinder class
- Add chords to the object using the addChord(string $chord) function (note: flat chords currently not implemented)
- Find the key of the music using the getKey() function (return's a string)
Current Limitations:
- Minor key finding unspoorted, should return the equivalent major key.
- Doesn't currently support the flat sign 'b' as an input.