Pi for audio frequencies is lovely and square, Pi at radio frequencies has distinct rise and fall and "just taking a moment to think about it" segments.
A spectrum analyser has probes!?!? This might be where I am going wrong... But the bench scope is largely in agreement about the distinct phases of a cycle at RF freq.
GPIO's usually looks quite squarey if you don't introduce parasitic reactances into the circuit with your test setup.