Continuous Melody Generation via Disentangled Short-Term Representations and Structural Conditions