7.27Harmonize by function, not just note matching
Suppose melody notes for three bars are:
E | F | G
You could choose:
C | F | G
That gives:
I | IV | V
Very clear function.
Then final C:
C
Now:
I → IV → V → I
The melody and harmony reinforce each other.