Using gate voltages to tune the noise properties of a mesoscopic cavity