[PD] A present

Andrew Faraday jbturgid at hotmail.com
Sat Dec 26 18:05:08 CET 2009


Yeah, that's how I'd do it if I was going to go all out for a vanilla compatible version.
I could consult the old school textbook, or I could use that brain thingy the Good Lord gave me. 
I'd probably go [-0.5]|[* 8]
Tho, yeah, might not worry too much about compatibility there. 
> Date: Sat, 26 Dec 2009 12:32:29 +0100
> From: zmoelnig at iem.at
> To: pd-list at iem.at
> Subject: Re: [PD] A present
> 
> Quoting "Matteo Sisti Sette" <matteosistisette at gmail.com>:
> 
> > Hi,
> >
> > I think I've found out why your game doesn't work for me.
> >
> > There is a [wrap -4 4] object somewhere, which I guess is used to  
> > wrap the snake's position around the screen.
> 
> seems to be zexy's [wrap] which allows you to take 2 arguments to wrap between
> 
> > However, [wrap -4 4] behaves exactly the same as [wrap].
> 
> seems to be vanilla's [wrap] which ignores all arguments and always  
> wraps between [0, 1).
> 
> >
> > I have PD Vanilla 0.42.4 and IIRC [wrap] is relatively recent. Maybe  
> > there is an abstraction or object in PD Extended older than the  
> > introduction of [wrap] in vanilla, and this object accepted creation  
> > arguments to change its range? and it is this object you are using?
> >
> 
> should be fairly simple to write an abstraction that wraps vanilla's  
> [wrap] into the zexy version.
> 
> basically you have to do a transformation to map the range -4..4 into  
> 0..1 for the input of vanilla's [wrap] and the other way round for the  
> output.
> 
> consult your secondary school's math textbooks for a solution to the problem.
> 
> 
> fgasdmr
> IOhannes
> 
> 
> 
> 
> 
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
 		 	   		  
_________________________________________________________________
View your other email accounts from your Hotmail inbox. Add them now.
http://clk.atdmt.com/UKM/go/186394592/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20091226/d4a21f43/attachment.htm>


More information about the Pd-list mailing list