Generating the ultrasonic, sonic or infrasonic waves