Numerical simulation of the electro-acoustical response of a transducer excited by a time-varying electrical circuit