Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 606 Bytes

README.md

File metadata and controls

28 lines (26 loc) · 606 Bytes

KrumhanslSchmuckler-php

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.