[maxmsp] Re: Comparing current value and previous value in a list
Martin Ritter
martini1 at gmx.at
Sun Mar 2 00:01:01 MST 2008
- Previous message: [maxmsp] Comparing current value and previous value in a list
- Next message: [maxmsp] Re: Comparing current value and previous value in a list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I am not sure if you want to compare two consecutive numbers or all numbers of your list with the current one... comparing two numbers is easy (see patch), also the biggest number out of a list isn't that hard (patch again) - I am sure there is a more efficient way, but it's late... Hope this helps and gets you started. #P window setfont "Sans Serif" 9.; #P number 69 160 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P toggle 156 34 15 0; #P window linecount 1; #P newex 171 34 52 196617 metro 50; #P newex 171 53 65 196617 drunk 128 7; #P number 240 291 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 252 100 15 0; #P newex 220 168 30 196617 t b b; #P window linecount 2; #P comment 283 283 100 196617 output biggest number of last 30; #P window linecount 1; #P newex 240 270 27 196617 i; #P number 188 251 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 220 202 14 196617 0; #P newex 220 147 38 196617 sel 29; #P newex 188 222 42 196617 peak; #P newex 171 96 27 196617 t b i; #N counter 0 0 29; #X flags 0 0; #P newobj 220 126 77 196617 counter 0 0 29; #P number 171 75 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 39 210 31 0; #P newex 39 185 32 196617 sel 1; #P newex 39 160 30 196617 >= 4; #P newex 39 125 34 196617 abs 0; #P newex 39 97 27 196617 - 0; #P newex 39 65 48 196617 bucket 2; #P number 39 40 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P window linecount 4; #P comment 21 244 100 196617 bang if difference between two numbers is certain threshold; #P connect 23 0 5 1; #P connect 5 0 6 0; #P fasten 4 0 5 0 44 151 44 151; #P connect 11 0 14 0; #P fasten 11 0 15 1 193 247 262 247; #P connect 22 0 21 0; #P connect 21 0 20 0; #P connect 20 0 8 0; #P fasten 19 0 1 0 245 314 136 314 136 30 44 30; #P connect 15 0 19 0; #P connect 18 0 9 2; #P connect 1 0 2 0; #P connect 2 0 3 0; #P connect 3 0 4 0; #P connect 6 0 7 0; #P fasten 2 1 3 1 82 89 61 89; #P connect 8 0 10 0; #P connect 10 1 11 0; #P fasten 10 0 9 0 176 120 225 120; #P connect 9 0 12 0; #P connect 12 0 17 0; #P connect 17 0 13 0; #P connect 13 0 11 1; #P fasten 17 1 15 0 245 191 245 191; #P window clipboard copycount 24;
- Previous message: [maxmsp] Comparing current value and previous value in a list
- Next message: [maxmsp] Re: Comparing current value and previous value in a list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
