Convert light to frequency