Tonal language background and detecting pitch contour in spoken and musical items