Munger

a port of Dan Truemans granular msp object.
if you want to record use RecordBuf.

Munger.ar(bufNum, 
		bufFrames, 
		grate, grate_var, 
		glen, glen_var, 
		gpitch, gpitch_var, 
		ggain, ggain_var, 
		direction, 
		position,
		voices, 
		pan_spread, 
		smoothpitch,
		wrampLength)

known bugs: an i-rate bufnumber rises the cpu to >1500% so use k-rate

note: the munger uses a sampleRate of 44100.
this example soundfile has a sampleRate of 11025.
therefore a speed of 0.25 is the original speed of the soundfile.
(

p = Patch({ arg sample;

	Munger.ar(sample.bufnumKr, //buffer numer: beware: for some reason i-rate does not work
			sample.bufFramesKr,
			10.0, //rate in ms must be > 0
			10.0, //rate variation in ms
			1000.0, //grain lenght in ms
			20.0, //length var
			0.25, //speed
			0.9, //speed var
			0.1, //gain
			0.1, //gain var
			1, //direction  0: random; 1: fwd; -1: bwd;
			-1.0, //position -1 random
			90, //max voices
			0.5,
			0 //smoothPitch ==1: speed var continuos; ==0: diatonic steps
			)

},[
	Sample("a11wlk01.wav")
]);
p.play;

)