How do I change the pattern length?

How do I change pattern length from the default 64?

The pattern length is found in the top left corner of the Pattern Editor — simply drag or double-click the value to change it.

To change the default length of newly created patterns, check the Song Options.