Arpeggiation describes an instrument being played in quick and frequent notes. Using time shifting and the pitch adjustment object from the example patches I’ve created a Max patch that allows you to arpeggiate any sample. It works most effectively with individual notes of an instrument, but can be used to create interesting warping effects with more complicated samples.
Sample used is a free piano loop from Cymatics
Sample and code can be found here: https://drive.google.com/open?id=1GegSX5L9t_hepPwi–p9KOkjNO7kZuGr