Object to get the difference in changing signal

Feb 22, 2008 at 7:23pm

Object to get the difference in changing signal

Dear reader,

I wonder if someone knows an object, that gives me the differnce between two numbers (following each other) in a float… the float is constantly changing randomly..

If anyone had an idea, would be appreciated..

all the best,
tEd

max v2;
#N vpatcher 14 59 614 459;
#P window setfont “Sans Serif” 9.;
#P flonum 454 192 63 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 415 167 129 196617 unpack 0. 0. 0. 0.;
#P newex 400 142 55 196617 jit.3m;
#B color 5;
#P message 207 139 23 196617 1.4;
#P message 176 139 23 196617 0.4;
#P message 145 139 23 196617 0.2;
#P flonum 161 202 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 5;
#P comment 265 174 100 196617 how do I get the difference if I do not know what number I am going to expect? like in jit.3m;
#P connect 2 0 1 0;
#P connect 3 0 1 0;
#P connect 4 0 1 0;
#P connect 5 1 6 0;
#P connect 6 1 7 0;
#P pop;

#36001
Feb 22, 2008 at 7:35pm

Hi tEd,

try jcom.delta, part of Jamoma: http://www.jamoma.org

Best,
Trond

> I wonder if someone knows an object, that gives me the differnce between two numbers (following each other) in a float… the float is constantly changing randomly..

#123308
Feb 22, 2008 at 8:06pm

On Feb 22, 2008, at 11:23 AM, tedor wrote:

> I wonder if someone knows an object, that gives me the differnce
> between two numbers (following each other) in a float… the float
> is constantly changing randomly..

I’m not sure I understand your problem, but is this what you had in
mind?

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 98 279 85 196617 Delta;
#P flonum 78 216 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 78 176 15 0;
#P flonum 61 278 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 61 245 27 196617 – 0.;
#P newex 78 195 31 196617 float;
#P message 107 71 23 196617 1.4;
#P message 76 71 23 196617 0.4;
#P message 45 71 23 196617 0.2;
#P flonum 61 134 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 115 217 85 196617 previous number;
#P connect 6 0 7 0;
#P fasten 6 0 8 0 66 268 202 268 202 170 83 170;
#P connect 1 0 6 0;
#P fasten 1 0 5 1 66 157 104 157;
#P connect 9 0 6 1;
#P connect 5 0 9 0;
#P connect 8 0 5 0;
#P connect 4 0 1 0;
#P connect 3 0 1 0;
#P connect 2 0 1 0;
#P window clipboard copycount 11;

#123309
Feb 22, 2008 at 9:30pm

Here’s one that utilizes lazy-evaluation:

#P window setfont “Sans Serif” 9.;
#P flonum 30 228 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 29 154 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 29 176 27 196617 t f f;
#P newex 30 203 27 196617 – 0.;
#P connect 0 0 3 0;
#P connect 2 0 1 0;
#P connect 1 1 0 0;
#P connect 1 0 0 1;
#P window clipboard copycount 4;

#123310
Feb 22, 2008 at 10:05pm

I always forget this sort of elegant approach.

Thanks,
-C

On Feb 22, 2008, at 1:30 PM, Andrew Benson wrote:

> Here’s one that utilizes lazy-evaluation:
>
> #P window setfont “Sans Serif” 9.;
> #P flonum 30 228 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 29 154 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window linecount 1;
> #P newex 29 176 27 196617 t f f;
> #P newex 30 203 27 196617 – 0.;
> #P connect 0 0 3 0;
> #P connect 2 0 1 0;
> #P connect 1 1 0 0;
> #P connect 1 0 0 1;
> #P window clipboard copycount 4;
>
>

#123311
Feb 22, 2008 at 10:37pm

Thank you all

Trond. I am checking the other objects as well to give me new ideas, they look useful.

Chris and Andrew. Who sad Max makes you more intelligent?!
Smart tips:)

thank you alL

#123312

You must be logged in to reply to this topic.