The prolongational component in A Generative Theory of Tonal Music assigns tensing and relaxing patterns to tonal sequences but does not adequately describe degrees of harmonic and melodic tension. This paper offers solutions to the problem, first by adapting the distance algorithm from the theory of tonal pitch space for the purpose of quantifying sequential and hierarchical harmonic tension. The method is illustrated for the beginning of the Mozart Sonata, K. 282, with emphasis on the hierarchical approach. The paper then turns to melodic tension in the context of the anchoring of dissonance. Interrelated attraction algorithms are proposed that incorporate the factors of stability, proximity, and directed motion. A distinction is developed between the tension of distance and the tension of attraction. The attraction and distance algorithms are combined in a view of harmony as voice leading, leading to a second analysis of the opening phrase of the Mozart in terms of voiceleading motion. Connections with recent theoretical and psychological work are discussed.