Approximate string matching based on musical contour theory (e.g. Marvin and Laprade 1987, Quinn 1997, Carter-Enyi 2016) is used to provide better computational analysis of musical structure for use with Wattenberg's arc diagram approach (2001).