A bandwidth-tunable optical passband filter with tunable attenuation is proposed. The filter, composed of a transmission liquid crystal array and high-resolution diffraction grating, was successfully demonstrated based on the compact spatial light design. Experimental results showed that the bandwid