A non-transitory computer-readable medium storing computer-readable instructions, the computer-readable instructions, when executed by a computer, causing the computer to execute a process, the process comprising:
- obtaining a pattern to be sewn on a workpiece by a sewing machine;
- obtaining a size of a sewing area to be set inside an embroidery hoop attachable to the sewing machine;
- setting a virtual arrangement of a plurality of the sewing areas relative to the workpiece;
- setting a virtual arrangement of the pattern relative to the workpiece;
- changing a relative position of the sewing areas;
- and
- generating embroidery data including needle drop data, the needle drop data representing a plurality of coordinates of needle drop points to form a plurality of stitches for the pattern located in each of the sewing areas in the relative position changed,
- wherein the setting of the virtual arrangement of the sewing areas virtually sets a contiguous area in which the sewing areas are contiguous with each other such that a particular sewing area of the sewing areas overlaps an adjacent sewing area adjacent to the particular sewing area,
- wherein the changing changes the relative position of each of the sewing areas in an adjacent direction in which a line passing through a center of the particular sewing area and a center of the adjacent sewing area extends,
- wherein, in a case where the pattern to be sewn includes a plurality of sub patterns delimited with cutting of thread, and each of the sub patterns is located in at least one of the sewing areas,
- wherein the generating generates embroidery data to sew, in the particular sewing area, a sub pattern of the sub patterns falling within the particular sewing area and does not generate embroidery data to sew the sub pattern in the adjacent sewing area, and
- wherein the generating splits the sub pattern, which is located in the particular sewing area but wholly does not fall within the particular sewing area and the adjacent sewing area, into a first split sub pattern and a second split sub pattern, in an overlap area in which the particular sewing area and the adjacent sewing area overlap, in a direction orthogonal to the adjacent direction,
- wherein the generating generates embroidery data to sew, in the particular sewing area, the first split sub pattern falling within the particular sewing area and embroidery data to sew, in the adjacent sewing area, the second split sub pattern located beyond the particular sewing area, wherein the generating sets an overlap amount between the first split sub pattern and the second split sub pattern smaller in the adjacent direction than a length of the overlap area, wherein the process further comprises setting the overlap amount and a position of an overlap range relative to the overlap area, and the overlap range is a range in which the first split sub pattern and the second split sub pattern overlap, and
- wherein the generating splits the sub pattern into the first split sub pattern and the second split sub pattern based on the overlap amount and the position of the overlap range.