<div class="im">Hey folks,<br><br>Still working on getting the train
architecture to run as efficiently as possible, will post up something
when it's worthy enough!<br></div><div class="gmail_quote"><div class="im"><br>In
other news, another simple thing I was playing with from the tutorial
pdf is attached - but I was trying to realise how to make the (gh 1) in
the pdata deform reset to zero rather than be cumulative? Does it have
to be defined seperately outside of (every-frame)? Or if there is a
simple way to reset it to zero after it gets above a certain number?
Sorry for the basic questions, still not used to scheme yet (or general
coding for that matter!)<br>

<br>Thanks,<br>Henderson<br><br><br>(clear)<br>(gain 1)<br>(start-audio "jack-port-to-read-sound-from" 44100 512)<br><br>(define myob (build-sphere 20 20))<br><br>(every-frame<br>(with-primitive myob<br>
    (pdata-map!<br>         (lambda (p)<br>               (vadd (vmul (rndvec) (gh 1)) p))<br>         "p")))<br></div></div>