A device for selectively adjusting power levels of component signals of a wavelength
division multiplexed signal including a first wavelength signal and a second wavelength
signal. The device includes a light modulator comprising a plurality of elements.
The plurality of elements are configured to form an arbitrary phase profile. The
plurality of elements includes a first group of elements configured to receive
the first wavelength signal and a second group of elements configured to receive
the second wavelength signal. The first group of elements and the second group
of elements include at least one common element. Each element is controllable such
that each group of elements directs a selected portion of a corresponding received
wavelength signal in a first mode. Each first mode is collected such that a power
level of each wavelength signal is selectively adjusted.