Foundations of Time-Frequency Analysis