It copies the current waveform by your selected amount, so you can apply DSP effects to it, then it selects out the repeating waveform at your selected frame number to be trimmed out.
The other script shift the selected sample data forward and back by one sample.
It will probably find limited use for anyone else but me, ha. Either way, here it is.