Recently I came across the "end correction" in organ pipes, and got to know that it affected only displacement waves, i.e it shifts the antinode of these displacement waves further outward.
Now if we consider this mathematically,
Here, the effective phase difference between the twice reflected wave and the newly sent by the source are related as follows, if we consider constructive interference (as it is the condition for resonance, i.e standing waves)
$$ \Delta \phi = \frac{2\pi}{\lambda}\cdot 2(L + 2e) = 2N\pi $$
NOTE- this derivation is for displacement waves. this yields
$$ \lambda = \frac{2\pi \cdot 2(L + 2e)}{2N\pi} = \frac{2(L + 2e)}{N}$$ where $$N$$ can take values 1,2,3... (harmonic modes)
however, if we consider the pressure wave, we know that these are out of phase by $\pi/2$ radians. and the pressure wave is unaffected by the "end correction"
so we have
$$ \lambda = \frac{2\pi \cdot 2(L)}{2N\pi} = \frac{2(L)}{N}$$
and this result is highly contradictory (I have probably gone wrong somewhere, can't find out where) as the wavelengths of both these waves should be the same (determined by source and medium).
