Generate melody on the fly, for real-time manipulation.