kadence Algorithm

While cadences are normally classified by specific chord or melodic progressions, the purpose of such progressions makes not inevitably constitute a cadence — there must be a sense of closure, as at the end of a phrase. In Western musical theory, a cadence (Latin cadentia," a falling") is" a melodic or harmonic configuration that makes a sense of resolution [ finality or pause ].

kadence source code, pseudocode and analysis