You can specify the range of the pattern that you want to be played back.
Procedure
To define which part of a pattern is played back, drag the start and end markers of the pattern on the timeline.
Result
MIDI events before the start or after the end marker are not played back.