The slope of the demand curve determines how much the price level and output respond to the shock, with more inelastic demand (and hence a steeper demand curve) causing there to be a larger effect on the price level and a smaller effect on quantity.