Melodic pattern discovery by structural analysis via wavelets and clustering techniques