I was reading over some of the fresh melodies thread and saw some references to "thinking chords" and "thinking scales". To even consider that you might be thinking about one or the other is ridiculous. They're not mutually exclusive. Chords are derived from scales, but they determine which notes are consonant and which are dissonant. That's what is important when playing melodies; tension and release.