Spectral Generation and Control of Linear and Nonlinear Self-Accelerating Beams and Pulses