  We study S- and P-wave pion-pion and kaon-pion distributions for the
three-body production processes $J/\psi\to\omega\pi^{+}\pi^{-}$, $D^{+}\to
K^{-}\pi^{+}\pi^{+}$, $D^{+}\to K^{+}\pi^{+}\pi^{-}$, and $D^{+}_{s}\to
K^{+}\pi^{+}\pi^{-}$, by applying the Resonance-Spectrum Expansion to the
two-body subamplitudes. The results are compared to the corresponding signals
reported by the BES, E791 and FOCUS collaborations. We find that the studied S-
and P-wave channels can largely account for the observed structures in the data
up to 1 GeV.
