updateSpectrumInput function

Change the value of a spectrum input on the client