Text this: Evidence for a shared cognitive mechanism underlying relative rhythmic and melodic perception