On Wed, 12 Oct 2005, Mathieu Bouchard wrote:
On Wed, 12 Oct 2005, james tittle wrote:
...looking for a pd object or abstraction that'll round a float up/down...
I told you, here's the full source code of the external, just paste it in the appropriate config file:
Oh, and if you mean up/down as in nearest, that's what [round] does; else, for always down, it's [floor], and always up, it's [ceil].
GridFlow::FObject.subclass("round",1,1){def _0_float(f)send_out 0,f.round end} GridFlow::FObject.subclass("floor",1,1){def _0_float(f)send_out 0,f.floor end} GridFlow::FObject.subclass("ceil" ,1,1){def _0_float(f)send_out 0,f.ceil end}
Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju Freelance Digital Arts Engineer, Montréal QC Canada