Parsing real–time musical inputs and spontaneously generating musical forms: Hierarchical Form Generator (HFG)