Modern trials pipes are calculated to the mm, just because it looks simple doesn't mean it is. They are hard to get wrong , a long parralel header will help them pull off the bottom well.
Lozza, tell us more. The long parallel header is a given, tho some more modern designs appear to have a slight taper for about half its length.
But we want to know about the design of the so-called "mid-box" specifically for trials. We all have a decent grasp of expansion chamber design for MX, enduro etc, but none of us can find anything specific to trials bikes design.
If you apply the usual expansion chamber design criteria, adapted for broad powerband & low-end power, you get a design much much longer than the typical trials exhausts. A couple of manufacturers went that route circa '80 but it didn't last.