basic but how to do cycle like 1, 1 2, 1 2 3, 1 2 3 4, etc…

May 15, 2007 at 11:53pm

basic but how to do cycle like 1, 1 2, 1 2 3, 1 2 3 4, etc…

all is in the title…

how to do:
1
1 2
1 2 3
1 2 3 4
etc…

thx.

(i become crazy)
i suppose it’s simple, but no way…
:-(

f./

#31935
May 16, 2007 at 12:20am

here’s one way… probably not the most efficient, but it works.

max v2;
#N vpatcher 10 59 610 459;
#P window setfont “Sans Serif” 9.;
#P number 148 237 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 227 132 33 196617 set 1;
#P newex 99 237 32 196617 print;
#P newex 207 297 27 196617 + 1;
#P newex 207 266 27 196617 i 1;
#P newex 207 229 32 196617 sel 1;
#P button 165 98 51 0;
#N counter 0 1 1;
#X flags 0 0;
#P newobj 188 182 71 196617 counter 0 1 1;
#P connect 0 0 5 0;
#P connect 0 0 7 0;
#P connect 1 0 0 0;
#P connect 6 0 0 0;
#P connect 0 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P fasten 4 0 3 1 212 322 241 322 241 259 229 259;
#P fasten 2 0 6 0 212 254 304 254 304 103 232 103;
#P fasten 4 0 2 1 212 322 241 322 241 218 234 218;
#P fasten 4 0 0 4 212 322 271 322 271 171 253 171;
#P pop;

#104273
May 16, 2007 at 12:23am

This is one of those things you could do in a number of ways. Have you looked at the counter object [in particular, its inputs and outputs]? accum?

Here’s one of those places we always talk about where it’s best to assume that there isn’t necessarily a single way to do things, that the possible multiple solutions will reflect the idiosyncracies of their designers, and that the process of putting one’s intellect to work trying to construct a solution will, in the long terms, be of greater benefit than solving the problem itself short term.

Your mileage may vary, but it shouldn’t. Spend a little time with the manual pages for the counter and accum objects, and with Max Tutorials 31 (counter) and 21 (accum).

#104274
May 16, 2007 at 12:41am

max v2;
#N vpatcher 10 59 367 391;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 195 263 27 196617 + 1;
#P message 195 189 39 196617 set $1;
#P button 148 120 30 0;
#P newex 208 148 40 196617 t i i 1;
#P newex 209 103 35 196617 int 1;
#P newex 209 64 23 196617 t b;
#P number 195 240 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 195 286 32 196617 print;
#P newex 208 126 27 196617 + 1;
#N counter 0;
#X flags 0 0;
#P newobj 195 215 66 196617 counter 0;
#P comment 58 52 66 196617 boom fareal;
#P connect 7 2 9 0;
#P connect 9 0 1 0;
#P connect 8 0 1 0;
#P connect 1 0 4 0;
#P connect 4 0 10 0;
#P connect 10 0 3 0;
#P connect 6 0 2 0;
#P connect 2 0 7 0;
#P fasten 1 2 5 0 236 242 265 242 265 57 214 57;
#P connect 5 0 6 0;
#P fasten 7 0 6 1 213 172 199 172 199 96 239 96;
#P connect 7 1 1 4;
#P pop;

I thought it would work, but there’s one error. It skips the second cycle. Now I’ll try and solve it, I like these little puzzles!!

#104275
May 16, 2007 at 1:52am

Or without counter:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 293 137 43 196617 interval;
#P number 222 108 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 253 135 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 236 225 62 196617 prepend set;
#P newex 187 265 40 196617 append;
#P newex 123 302 49 196617 print out;
#P newex 236 204 27 196617 + 1;
#P newex 195 183 51 196617 zl ecils 1;
#P button 187 108 15 0;
#P newex 187 157 45 196617 zl reg 1;
#P comment 222 91 42 196617 reset to;
#P comment 151 109 30 196617 step;
#P connect 2 0 6 0;
#P connect 2 0 7 0;
#P connect 2 0 4 0;
#P connect 10 0 2 1;
#P connect 9 0 5 1;
#P connect 7 0 2 1;
#P connect 3 0 2 0;
#P connect 8 0 7 0;
#P connect 5 0 8 0;
#P connect 4 1 5 0;
#P window clipboard copycount 12;

#104276
May 16, 2007 at 1:53am

thx all. i finally found a solution.
but yes it was only a logical problem and my brain didn’t work. :-)

“Spend a little time with the manual pages for the counter and accum objects, and with Max Tutorials 31 (counter) and 21 (accum).”

yes for sure i did. but…

thx again.

#104277
May 16, 2007 at 2:18am

and could you now point me in a direction to learn how to play very
quickly (each 100 or 200 ms) pictures (500px*500px 150 dpi) ?
and record it as movie.

thx again.
f./

#104278
May 16, 2007 at 6:20am

On 16 mai 07, at 04:18, elt wrote:

> and could you now point me in a direction to learn how to play very
> quickly (each 100 or 200 ms) pictures (500px*500px 150 dpi) ?
> and record it as movie.

jit.qt.movie/jit.matrix -> jit.qt.record?

ej

#104279
May 16, 2007 at 1:25pm

#104280
May 16, 2007 at 3:56pm

using jit.qt.movie, i have to previously make a movie with all this pictures.
any way to get directly pictures from a folder ?

#104281
May 16, 2007 at 4:23pm

On 16 mai 07, at 17:56, fp wrote:

> using jit.qt.movie, i have to previously make a movie with all this
> pictures.
> any way to get directly pictures from a folder ?

If you have enough RAM, you can create a jit.matrixset, store each
pictures into it via an automatic mechanism you’ll have to build
(using ubumenu autopopulate method, i. e.). Perhaps it’s better to
start a new thread on the jitter forum.

ej

#104282
May 16, 2007 at 5:05pm

Hi,

I’m looking for a way to generate random integers within a given range with
the stipulation that once a particular integer has been generated it cannot
be generated again.

For example, if the range is 0 to 4 the output might look like this:

4, 2, 3, 1, 0

Any suggestions? Thanks.

Windows Live Hotmail. Now with better security, storage and features.
http://www.newhotmail.ca?icid=WLHMENCA149

#104283
May 16, 2007 at 6:12pm

On 16 mai 07, at 19:05, greg eustace wrote:

> Hi,
>
> I’m looking for a way to generate random integers within a given
> range with the stipulation that once a particular integer has been
> generated it cannot be generated again.
>
> For example, if the range is 0 to 4 the output might look like this:
>
> 4, 2, 3, 1, 0

[urn] is the one. the abstraction [urn-jb] (in the example folder)
might be useful too if you want to make sure that there’s no
repetition when the series starts again.

ej

#104284
May 16, 2007 at 6:19pm

urn … ?

helpfiles and docs are your friend.

On May 16, 2007, at 1:05 PM, greg eustace wrote:

> Hi,
>
> I’m looking for a way to generate random integers within a given
> range with the stipulation that once a particular integer has been
> generated it cannot be generated again.
>
> For example, if the range is 0 to 4 the output might look like this:
>
> 4, 2, 3, 1, 0
>
> Any suggestions? Thanks.
>
> Windows Live Hotmail. Now with better security, storage and
> features. http://www.newhotmail.ca?icid=WLHMENCA149
>

v a d e //

http://www.vade.info
abstrakt.vade.info

#104285
May 16, 2007 at 9:43pm

John Pitcairn schrieb:
> Or without counter:

Or with counter, but only three objects…

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 35 164 36 196617 print;
#N counter;
#X flags 0 0;
#P newobj 77 135 63 196617 counter;
#P number 116 45 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 90 111 54 196617 zl group 1;
#P newex 64 86 36 196617 uzi 1;
#P button 64 46 15 0;
#P fasten 4 0 1 1 82 158 154 158 154 81 95 81;
#P fasten 4 0 2 1 82 158 154 158 154 104 139 104;
#P connect 1 1 4 0;
#P connect 3 0 4 3;
#P connect 2 0 5 0;
#P connect 1 2 2 0;
#P connect 0 0 1 0;
#P window clipboard copycount 6;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#104286
May 17, 2007 at 4:50am

I see that you’ve gotten several versions already, but here’s another
take that uses Uzi with a feedback loop (it doesn’t gather it’s
output into a list, but I wasn’t sure you really wanted that anyway):

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 213 194 52 196617 =======;
#P newex 145 134 48 196617 loadbang;
#P message 145 153 14 196617 1;
#P comment 160 153 35 196617 Reset;
#P newex 127 232 27 196617 + 1;
#P newex 127 212 27 196617 int;
#P newex 213 217 36 196617 print;
#P newex 110 187 45 196617 uzi 1;
#P button 110 168 15 0;
#P connect 1 2 3 1;
#P connect 1 2 2 0;
#P lcolor 11;
#P connect 1 1 3 0;
#P connect 1 1 8 0;
#P lcolor 11;
#P connect 8 0 2 0;
#P connect 6 0 1 1;
#P connect 7 0 6 0;
#P fasten 4 0 1 1 132 254 164 254 164 179 150 179;
#P lcolor 15;
#P connect 3 0 4 0;
#P connect 0 0 1 0;
#P window clipboard copycount 9;

-C


Chris Muir | “There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,
http://www.xfade.com | and radicals always argue.” – Brian Eno

#104287
May 18, 2007 at 5:33am

yep.
i’ll see that.
for now it’s ok with a movie to begin with jitter.
thx.

#104288

You must be logged in to reply to this topic.