Density waves in gravity-driven granular flow through a channel