You just described pretty much what Lynch & Badalamenti say in this documentary I watched about the creation of the Twin Peaks score :) Specifically they break down the main theme with its shift from the joyous major chord into the dissonant sequence, then lifting again by the end. The clip is on youtube I'm sure.