Investigating bands of a spectrum in sequence by a single detector