An approach to melodic segmentation and classification based on filtering with the Haar-wavelet
This work addresses automatic segmentation and classification of symbolic melodies, specifically targeting two tasks: attribution of excerpts from Bach’s Two-Part Inventions (BWV 772–786) to their parent works, and assignment of 360 Dutch folk songs to one of 26 tune families. We propose a single-scale continuous Haar wavelet filtering method that models pitch sequences as time-series signals; segmentation is driven by detection of local extrema and zero crossings, followed by k-nearest neighbors classification using Euclidean or Manhattan distance. This is the first application of Haar wavelets directly for melodic structural representation and segmentation—bypassing heuristic Gestalt-based rules and enabling cross-modal integration of signal processing and music cognition. Experiments show our method significantly outperforms both unfiltered pitch sequences and Gestalt-based segmentation on Bach excerpt attribution, and achieves performance close to the pitch-based baseline on folk tune family classification—slightly below state-of-the-art multi-feature string-matching approaches.