Real-time sound generation