Index of the first chord read in the new key.
Key before the change, as passed in or as a previous event's toKey.
OptionalpivotThe chord before atIndex, when it belongs to both keys.
New key, as 'G major' or 'C minor'.
'pivot' when the chord before atIndex belongs to both keys, otherwise 'direct'.
analyzeProgression only gives these two; Harmony.classifyModulation also tells
'enharmonic', 'chromatic' and 'common-tone'.
A detected key change within a chord progression. Includes the index where modulation occurs and the type (pivot, direct, etc.).