The riff is fixed, you cannot change it. It will vary in length and complexity based on the pattern from which it is generated. Not all patterns have the riff feature, I'd guess about 10% of the patterns in the SD5. It is based on the key, major or minor, tempo, and pattern. The riff usually has three variations, increasing in complexity from variation one through variation three. Hope this helps.

Glenn