Makes loop playback follow repeats

Make loop playback follow repeats
Correct the loop cursor positions in scoreview