Forums > MaxMSP

Strange Little Conundrum

October 2, 2006 | 9:57 pm

Hey all, I’m making a really simple delay unit that has independent left and
right control of the delay times, however you can also link the two delay
times so that they are exactly the same. to avoid stack overflow, the two
number boxes that I use to control left and right delay times are updating
into each other with the set message.

However, the set message doesnt make the 2nd number box output. So, when I
raise the delay time to 200 ms, the number box that I use to do it, makes
the delay time on its channel go up to 200 ms, but, even though the other
number box displays 200 ms, it doesnt update its respective tapin~, due to
the set message, which i have to use to avoid stack overflow. is there any
way around this? i’ve included a little example patch to show what I mean.

thanks for any help
Nic

max v2;
#N vpatcher 37 59 637 459;
#P window setfont "Sans Serif" 9.;
#P number 334 92 35 9 0 0 0 3 0 0 0 255 156 156 222 222 222 0 0 0;
#P number 93 96 35 9 0 0 0 3 0 0 0 75 95 255 222 222 222 0 0 0;
#P number 129 300 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 276 299 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 352 163 39 196617 set $1;
#B color 4;
#P message 93 164 39 196617 set $1;
#B color 1;
#P window linecount 5;
#P comment 166 287 108 196617 how do I get both of these to update at the
same time while avoiding stack overflow?;
#P connect 2 0 5 0;
#P lcolor 5;
#P connect 5 0 1 0;
#P lcolor 2;
#P connect 1 0 4 0;
#P connect 2 0 3 0;
#P connect 1 0 6 0;
#P lcolor 2;
#P connect 6 0 2 0;
#P lcolor 5;
#P pop;



vi-
October 2, 2006 | 10:40 pm


October 3, 2006 | 12:05 am

Quote: bankbot wrote on Mon, 02 October 2006 14:57
—————————————————-
> Hey all, I’m making a really simple delay unit that has independent left and
> right control of the delay times, however you can also link the two delay
> times so that they are exactly the same. to avoid stack overflow, the two
> number boxes that I use to control left and right delay times are updating
> into each other with the set message.
>

I don’t follow your patch, really. Clearly, you don’t mean this:

#P window setfont "Sans Serif" 9.;
#P number 334 92 35 9 0 0 0 3 0 0 0 255 156 156 222 222 222 0 0 0;
#P number 93 96 35 9 0 0 0 3 0 0 0 75 95 255 222 222 222 0 0 0;
#P number 129 300 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 276 299 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 352 163 39 196617 set $1;
#B color 4;
#P message 93 164 39 196617 set $1;
#B color 1;
#P window linecount 5;
#P comment 166 287 108 196617 how do I get both of these to update at the same time while avoiding stack overflow?;
#P connect 2 0 5 0;
#P lcolor 5;
#P connect 2 0 4 0;
#P connect 2 0 3 0;
#P connect 1 0 4 0;
#P connect 1 0 3 0;
#P connect 1 0 6 0;
#P lcolor 2;
#P connect 6 0 2 0;
#P lcolor 5;
#P connect 5 0 1 0;
#P lcolor 2;
#P window clipboard copycount 7;

????

mzed


October 3, 2006 | 12:14 am

> Hey all, I’m making a really simple delay unit that has independent left and
> right control of the delay times, however you can also link the two delay
> times so that they are exactly the same.

Is this what you mean?

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 181 197 39 196617 set $1;
#P message 110 199 39 196617 set $1;
#P number 55 78 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 278 89 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 46 298 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 280 287 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user ubumenu 151 90 100 196617 0 1 1 0;
#X add not linked;
#X add linked;
#X prefix_set 0 0 0;
#P newex 187 162 29 196617 gate;
#P newex 115 171 29 196617 gate;
#P connect 1 0 4 0;
#P connect 1 0 8 0;
#P connect 5 0 1 1;
#P connect 5 0 3 0;
#P fasten 8 0 6 0 148 314 45 356 14 142 27 52;
#P fasten 7 0 5 0 195 310 426 329 373 68 283 68;
#P connect 0 0 7 0;
#P connect 0 0 3 0;
#P connect 6 0 4 0;
#P connect 6 0 0 1;
#P connect 2 0 0 0;
#P connect 2 0 1 0;
#P window clipboard copycount 9;

mzed


October 3, 2006 | 6:57 pm

Vivien and mzed,

thanks, that was exactly what I was looking for.

nic

On 10/2/06, mzed wrote:
>
>
>
> > Hey all, I’m making a really simple delay unit that has independent left
> and
> > right control of the delay times, however you can also link the two
> delay
> > times so that they are exactly the same.
>
> Is this what you mean?
>
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P message 181 197 39 196617 set $1;
> #P message 110 199 39 196617 set $1;
> #P number 55 78 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P number 278 89 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P number 46 298 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P number 280 287 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P user ubumenu 151 90 100 196617 0 1 1 0;
> #X add not linked;
> #X add linked;
> #X prefix_set 0 0 0;
> #P newex 187 162 29 196617 gate;
> #P newex 115 171 29 196617 gate;
> #P connect 1 0 4 0;
> #P connect 1 0 8 0;
> #P connect 5 0 1 1;
> #P connect 5 0 3 0;
> #P fasten 8 0 6 0 148 314 45 356 14 142 27 52;
> #P fasten 7 0 5 0 195 310 426 329 373 68 283 68;
> #P connect 0 0 7 0;
> #P connect 0 0 3 0;
> #P connect 6 0 4 0;
> #P connect 6 0 0 1;
> #P connect 2 0 0 0;
> #P connect 2 0 1 0;
> #P window clipboard copycount 9;
>
>
> mzed
>
>
> –
> || michael f. zbyszynski — molecular gastronimist
> || mzed@cnmat.berkeley.edu — +1.510.643.9990×314
> || http://www.cnmat.berkeley.edu/
> || http://www.piratelemur.com/
>
>
>
>


Viewing 5 posts - 1 through 5 (of 5 total)