I've been trying to understand how to identify the voices within the harmonic progression they form, after learning counterpoint and SATB harmony.
But when I'm investigating the relation between voices more closely (parallel octaves, fifths, harmony, etc) I see segments where the number of voices keep adding or changing. As a result, I can't really understand the connection between them. For example, I don't know where the alto is going because the number of voices has changed.
In the picture below, taken from one of Bach's sonatas, I suppose the voices are distinguished by their stem direction where the soprano is always upward and the bass downward, but am I correct that the number of inner voices may increase or decrease?
If I'm correct, here's a follow up question: does this mean we can have 2 altos when the number voices become 5, for example? I also see in Haydn pieces that the number of voices can sometimes go from 2 to 5; in that case, what became of the missing alto and tenor voices? Do they mix with each other?
If it goes down from 5 to 2 voices does that mean we now only have the bass and soprano voices? See measure 8 cadence resolution where you can see 5 voices. The bottom 2 D forming an octave in the left hand part; are they both just the bass, or is the higher D the tenor?