From Notes To Musical Form: A Machine Learning Approach