"damnit man a 4T's got valves! Why do you need a resonant pipe to duplicate what the valves are already doing?"
Performance 4-strokes have a considerable overlap period where both the inlet & exhaust are open at the same time.
Just like a 2-stroke.
The first purpose of the 2-Stroke expansion chamber is to create a negative (sound/pressure) wave to extract exhaust gasses and to reduce pressure in the crankcase and inlet tract, allowing atmospheric pressure to push more air/fuel mixture into the engine than would occur otherwise.
The second purpose of the expansion chamber is to create a positive (sound/pressure) wave, timed to push fresh charge, that has entered the exhaust port & header pipe, back into the engine before the exhaust port closes.
A similar, but obviously smaller, effect can be produced for 4 stroke engines with an expanding & contracting chamber in the pipe.
As far as full expansion chambers for 4-strokes goes, I spent a fair bit of time with Lotus's Sim program, designing pipes for the mighty SL100/125.
In my attempts, the full expansion chamber did not ever produce a higher output than a tuned length pipe.
What it could do for the little Honda was produce an almost completely flat torque curve across the entire rev range.
Might be good for 4-Stroke trial engines, but not MX.
Cheers, DJ