Context. There is abundant observational evidence of longitudinal compressive waves in plasma structures of the solar corona, which are confidently interpreted in terms of slow magnetoacoustic waves. The uses of coronal slow waves in plasma diagnostics, as well as analysis of their possible contribution to coronal heating and the solar wind acceleration, require detailed theoretical modelling. Aims. We investigate the effects of obliqueness, magnetic field, and non-uniformity of the medium on the evolution of long-wavelength slow magnetoacoustic waves guided by field-aligned plasma non-uniformities, also called tube waves. Special attention is paid to the cut-off effect due to the gravity stratification of the coronal plasma. Methods. We study the behaviour of linear tube waves in a vertical untwisted straight field-aligned isothermal plasma cylinder. We apply the thin flux tube approximation, taking into account effects of stratification caused by gravity. The dispersion due to the finite radius of the flux tube is neglected. We analyse the behaviour of the cut-off period for an exponentially divergent magnetic flux tube filled in with a stratified plasma. The results obtained are compared with the known cases of the constant Alfven speed and the pure acoustic wave. Results. We derive the wave equation for tube waves and reduce it to the form of the Klein-Gordon equation with varying coefficients, which explicitly contains the cut-off frequency. The cut-off period is found to vary with height, decreasing significantly in the low-beta plasma and in the plasma with the beta of the order of unity. The depressions in the cut-off period profiles can affect the propagation of longitudinal waves along coronal plasma structures towards the higher corona and can form coronal resonators.