Crop Patternlength(S) To Length In Time Of Selected Sample

simply download the file and drag&drop it on Renoise.

complete help here