Is there a device which takes as input the wavelength or frequency value and produces electromagnetic waves of the given wavelength or frequency using an emitter? It might be that the wavelength range of the device is limited to a "considerably large" part of the electro-magnetic (EM) spectrum, but can it cover the entire visible spectrum?
Splitting a white light source,and getting different wavelengths might be an option. But are there other better ones?