r0colita / AutoAnalysis

An automated musical analysis tool for musicians and conductors.
1 stars 0 forks source link

Design Cadence detector #8

Open r0colita opened 4 months ago

r0colita commented 4 months ago

Proposition: There exists one or more sections inside a given piece where cadential formulae are present.

Chapter 11 of the Adler is exclusively dedicated to cadences, so it would help to go back from the modulation finder and find a function that detects the different kinds of cadence.

Algorithm should detect:

r0colita commented 3 months ago

https://medium.com/@johnnyJK/data-structures-and-algorithms-907a63d691c1

r0colita commented 3 months ago

This function is not working with Piston's Example 11-1 because there is a neighbor note within the cadence. Might be best to learn how a music21.tree works to see if this can be taken into account.

There is a property called Horizontality.hasNeighborTone that can aid with this. But to get this property you need to do a process of making a music21.tree and extracting verticalities. It's very specific.

image