Methods and systems for treating tinnitus are provided. In some embodiments of the present invention, a recursive feedback method is used to control light modulating elements andor spatial light modulators. This simultaneously realizes continuous control of the F-number, multi-step control of the light attenuation ratio of the ND filter, a substantially circular stop aperture, and a uniform transmittance distribution in the stop aperture.