ot;
I once proposed a time-stretching tool based on the sample offset pattern commands ( Idea: Easy Oldschool Sampleoffset-Timestretch Tool )
Have a gui where you can set-up stuff and generate / render the offsetted sample pattern to a new instrument. As timestretching is basically granular synthesis, similar stuff as op’s post can be achieved just using pattern commands.