check_repeat_and_nonrepeat function

Check for instruments that have both repeating and non-repeating structure