of stitches setting means 20 of the first section of the first corner portion is set to 34 2 34 because the number of stitches of one needle sewing between the points 100 to 200 is two at the first corner portion a portion the second number of stitches setting means 30 of the first corner portion is set to 34 2 34 because the number of stitches between points 200 to 300 is also two the first number of stitches setting means 21 of the second corner portion is set to 34 1 34 because the number of stitches of one needle sewing between the points 400 to 500 is 1 at the second corner portion b portion the second number of stitches setting means 31 of the second corner portion is set to 34 0 34 because two needle sewing is performed after the needle is stopped at the point 500 as described above when the sewing is performed at the corner portion having an obtuse angle the numbers of stitches of one needle sewings may be different from each other in the sections before and after the changing of the direction of a cloth therefore if a corner sewing signal is inputted to the control means when the needle is positioned at the point 400 in the b portion the number of stitches is read from.