fixed calculation of pattern offsets in music data