Spectrum Control through Discrete Frequency Diffraction in the Presence of Photonic Gauge Potentials