Build a signal from components, see its frequency spectrum via FFT
The power spectrum shows how much energy a signal contains at each frequency. Computed via the Discrete Fourier Transform (DFT). Windowing reduces spectral leakage — the Hann/Hamming windows taper the signal edges. Square waves contain only odd harmonics; sawtooth waves contain all harmonics.