{\rtf1\mac\ansicpg10000\cocoartf102 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fnil\fcharset77 Monaco;} {\colortbl;\red255\green255\blue255;\red0\green0\blue191;\red191\green0\blue0;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f0\b\fs36 \cf0 Munger \f1\b0\fs18 \ \ 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.\ (\ \ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \cf2 p = Patch\cf0 (\{ \cf2 arg\cf0 sample;\ \ \cf2 Munger\cf0 .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 \cf3 0: random; 1: fwd; -1: bwd;\ -1.0, //position -1 random\cf0 \ 90, //max voices\ 0.5,\ 0 //smoothPitch ==1: speed var continuos; ==0: diatonic steps\ )\ \ \},[\ \cf2 Sample\cf0 ("a11wlk01.wav")\ ]);\ p.play;\ \ )}