A method of determining an optical spectrum for a sample substance includes splitting a source beam into a reference beam and a sample beam, periodically modulating the intensity of the beams out of phase of each other, directing the reference beam through a reference substance and the sample beam through the sample substance. The beams are then recombined, and a single detector detects the intensity difference at the modulation frequency to determine the spectrum of the sample substance.