Structural Functions of Harmony (Revised Edition)