MidiClip refactored, problems with the last cell (looping) and changing number of bars.