Soft Dynamic Time Warping for Multi-Pitch Estimation and Beyond