sound generation with panning and sine/square wave