ADD: signal processing code