two things with good muffler design... attenuation and flow
we all know about blowing across the top of a bottle. its called a cavity resonator.
so get a pipe, say the stinger.
you drill one hole in it. you encase it in a larger diameter pipe, so you end up with a chamber around the stinger pipe, which the exhaust doesnt flow through (unlike most peoples concept of mufflers). instead, it resonates at a specific frequency determined by the chamber dimensions, hole size, number of holes, etc.
so, ive made noise? how does that work? the sound waves are hopefully matched in frequency with the sound waves coming down the exhaust. matched in frequency, but opposed in PHASE.
two opposing signals CANCELS. so, you attenuate that frequency. it gets cut out of the sound spectrum.
so, by combining several of these chambers down the pipe, you can attenuate a fairly large range of frequencies.
then, a take more commonly used in large auto mufflers, that are getting extremely effective these days, is to split the flow into two paths. one is slightly longer than the other.
when the sound waves emerge, they match in frequency, but, depending on temperature and frequency and length, should be out of phase.
once again cancelling.
baffles do work, theyre the standard method, but they arent as effective as using sound itself as your friend