Preset loop lengths

So I’m wondering if it would be possible to make a secondary recording mode that would allow you to select the length of the loop before recording. For example something like shift+record+pattern 1-6 would correspond to the amount of measures it would record and then automatically loop afterwards