Controllable deep melody generation via hierarchical music structure representation