An approach to melodic segmentation and classification based on filtering with the Haar-wavelet