<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. </div><div><br></div><div>I'd probably go </div><div>[-0.5]</div><div>|</div><div>[* 8]</div><div><br></div><div>Tho, yeah, might not worry too much about compatibility there. </div><div><br>> Date: Sat, 26 Dec 2009 12:32:29 +0100<br>> From: zmoelnig@iem.at<br>> To: pd-list@iem.at<br>> Subject: Re: [PD] A present<br>> <br>> Quoting "Matteo Sisti Sette" <matteosistisette@gmail.com>:<br>> <br>> > Hi,<br>> ><br>> > I think I've found out why your game doesn't work for me.<br>> ><br>> > There is a [wrap -4 4] object somewhere, which I guess is used to <br>> > wrap the snake's position around the screen.<br>> <br>> seems to be zexy's [wrap] which allows you to take 2 arguments to wrap between<br>> <br>> > However, [wrap -4 4] behaves exactly the same as [wrap].<br>> <br>> seems to be vanilla's [wrap] which ignores all arguments and always <br>> wraps between [0, 1).<br>> <br>> ><br>> > I have PD Vanilla 0.42.4 and IIRC [wrap] is relatively recent. Maybe <br>> > there is an abstraction or object in PD Extended older than the <br>> > introduction of [wrap] in vanilla, and this object accepted creation <br>> > arguments to change its range? and it is this object you are using?<br>> ><br>> <br>> should be fairly simple to write an abstraction that wraps vanilla's <br>> [wrap] into the zexy version.<br>> <br>> basically you have to do a transformation to map the range -4..4 into <br>> 0..1 for the input of vanilla's [wrap] and the other way round for the <br>> output.<br>> <br>> consult your secondary school's math textbooks for a solution to the problem.<br>> <br>> <br>> fgasdmr<br>> IOhannes<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> ----------------------------------------------------------------<br>> 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>