machinery to calculate two-component spectrum