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