Forums > MaxMSP

LINE is driving me crazy

July 23, 2007 | 3:27 pm

Hi all,

just a quick question.
I was making this patch to control the movement of some gl stuff with. I’ve created this by using a line object and a breakpoint function generator to draw in an envelope curve to go through the envelope.

The problem is that it always stops when reaching the first pont and doesn’t continue to the next. HAs anyone any idea how to fix this?

best regards,

pieter

here’s the patch:

max v2;
#N vpatcher 249 145 1008 643;
#P origin 8 111;
#P window setfont "Sans Serif" 12.;
#P window linecount 1;
#P newex 27 404 50 196620 print;
#P window setfont "Fleftex Mono" 12.;
#P comment 220 99 82 -2009071604 [RANDOM];
#B color 1;
#P window linecount 5;
#P comment 69 59 17 -2009071604 START;
#B color 1;
#P window linecount 4;
#P comment 50 73 13 -2009071604 LOOP;
#B color 1;
#P window linecount 5;
#P comment 30 58 14 -2009071604 CLEAR;
#B color 1;
#P window linecount 1;
#P comment 227 118 55 -2009071604 [MAX];
#B color 1;
#P comment 174 119 55 -2009071604 [MIN];
#B color 1;
#P user function 26 151 317 304 1 1 0 0;
#X frgb 191 241 255;
#X brgb 10 11 39;
#X rgb2 0 91 198;
#X rgb3 255 255 255;
#X rgb4 255 255 255;
#X rgb5 0 0 0;
#X add 0. -8. 0;
#X add 459.240143 1.01 0;
#X add 1001. -8. 0;
#X domain 1001.;
#X range -8. 1.01;
#X done;
#N comlet maximum;
#P hidden inlet 491 24 15 0;
#N comlet minimum;
#P hidden inlet 474 24 15 0;
#N comlet domain;
#P hidden inlet 458 24 15 0;
#N comlet start line;
#P hidden inlet 422 24 15 0;
#N comlet loopON/OFF;
#P hidden inlet 402 24 15 0;
#P window setfont "Sans Serif" 9.;
#P hidden newex 504 43 70 196617 loadbang;
#P hidden message 526 77 50 196617 1;
#P hidden newex 360 46 30 196617 t b b;
#P hidden newex 294 420 50 196617 gate;
#P toggle 298 115 19 0;
#P window setfont "Sans Serif" 12.;
#P number 289 133 28 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 298 97 19 0;
#P window setfont "Sans Serif" 9.;
#P hidden newex 378 81 40 196617 uzi 3;
#P hidden newex 571 216 50 196617 print;
#P hidden newex 435 80 40 196617 t b b b;
#P hidden newex 552 176 50 196617 zl group 2;
#P hidden newex 544 144 111 196617 scale 1 1000. 0. 1.;
#P hidden newex 544 113 70 196617 random 1000;
#P hidden newex 435 111 70 196617 random 1000;
#P hidden outlet 168 350 15 0;
#P button 27 133 19 0;
#P hidden message 345 151 50 196617 clear;
#P window setfont "Sans Serif" 12.;
#P flonum 227 133 49 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 176 133 49 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P hidden newex 453 190 50 196617 pak 0. 1.;
#P hidden newex 454 215 93 196617 prepend setrange;
#P window setfont "Sans Serif" 12.;
#P number 89 133 84 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P hidden newex 456 231 93 196617 prepend setdomain;
#P toggle 47 133 19 0;
#P hidden newex 80 413 50 196617 gate;
#P button 67 133 19 0;
#P window setfont "Sans Serif" 12.;
#P flonum 21 303 168 12 0 0 8224 3 255 255 255 255 255 255 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P hidden newex 80 393 50 196617 line 0.;
#P window setfont "Fleftex Mono" 12.;
#P comment 93 119 82 -2009071604 [DOMAIN];
#B color 1;
#P user panel 20 52 304 271;
#X brgb 132 132 132;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P hidden connect 2 0 3 0;
#P hidden connect 19 0 35 0;
#P connect 4 0 35 0;
#P hidden connect 13 0 35 0;
#P hidden connect 9 0 35 0;
#P hidden connect 7 0 35 0;
#P hidden connect 26 0 14 0;
#P fasten 35 1 42 0 124 354 32 354;
#P hidden connect 30 0 6 0;
#P hidden fasten 5 0 4 0 85 297 28 111 72 111;
#P hidden connect 31 0 4 0;
#P hidden connect 35 1 2 0;
#P hidden fasten 6 0 5 0 52 279 85 279;
#P hidden connect 32 0 8 0;
#P hidden fasten 28 0 2 2 531 316 125 316;
#P hidden fasten 2 1 5 1 125 393 125 393;
#P hidden connect 3 0 15 0;
#P hidden connect 33 0 11 0;
#P hidden connect 34 0 12 0;
#P hidden connect 25 0 26 0;
#P hidden connect 27 1 26 1;
#P hidden connect 14 0 13 0;
#P hidden connect 23 0 27 0;
#P hidden connect 27 0 22 0;
#P hidden fasten 24 0 22 1 294 69 413 69;
#P hidden connect 22 0 20 0;
#P hidden connect 20 1 16 0;
#P hidden connect 11 0 10 0;
#P hidden connect 10 0 9 0;
#P hidden connect 8 0 7 0;
#P hidden connect 12 0 10 1;
#P hidden connect 8 0 16 1;
#P hidden connect 29 0 28 0;
#P hidden connect 20 0 17 0;
#P hidden connect 17 0 18 0;
#P hidden connect 18 0 19 0;
#P hidden connect 16 0 19 0;
#P hidden connect 19 0 21 0;
#P hidden connect 11 0 18 3;
#P hidden connect 12 0 18 4;
#P pop;


July 23, 2007 | 3:36 pm

Use lines.

On 7/23/07 11:28 AM, "pieter coussement" wrote:

>
> Hi all,
>
> just a quick question.
> I was making this patch to control the movement of some gl stuff with. I’ve
> created this by using a line object and a breakpoint function generator to
> draw in an envelope curve to go through the envelope.
>
> The problem is that it always stops when reaching the first pont and doesn’t
> continue to the next. HAs anyone any idea how to fix this?
>
> best regards,
>
> pieter
>
> here’s the patch:
>
> max v2;
> #N vpatcher 249 145 1008 643;
> #P origin 8 111;
> #P window setfont "Sans Serif" 12.;
> #P window linecount 1;
> #P newex 27 404 50 196620 print;
> #P window setfont "Fleftex Mono" 12.;
> #P comment 220 99 82 -2009071604 [RANDOM];
> #B color 1;
> #P window linecount 5;
> #P comment 69 59 17 -2009071604 START;
> #B color 1;
> #P window linecount 4;
> #P comment 50 73 13 -2009071604 LOOP;
> #B color 1;
> #P window linecount 5;
> #P comment 30 58 14 -2009071604 CLEAR;
> #B color 1;
> #P window linecount 1;
> #P comment 227 118 55 -2009071604 [MAX];
> #B color 1;
> #P comment 174 119 55 -2009071604 [MIN];
> #B color 1;
> #P user function 26 151 317 304 1 1 0 0;
> #X frgb 191 241 255;
> #X brgb 10 11 39;
> #X rgb2 0 91 198;
> #X rgb3 255 255 255;
> #X rgb4 255 255 255;
> #X rgb5 0 0 0;
> #X add 0. -8. 0;
> #X add 459.240143 1.01 0;
> #X add 1001. -8. 0;
> #X domain 1001.;
> #X range -8. 1.01;
> #X done;
> #N comlet maximum;
> #P hidden inlet 491 24 15 0;
> #N comlet minimum;
> #P hidden inlet 474 24 15 0;
> #N comlet domain;
> #P hidden inlet 458 24 15 0;
> #N comlet start line;
> #P hidden inlet 422 24 15 0;
> #N comlet loopON/OFF;
> #P hidden inlet 402 24 15 0;
> #P window setfont "Sans Serif" 9.;
> #P hidden newex 504 43 70 196617 loadbang;
> #P hidden message 526 77 50 196617 1;
> #P hidden newex 360 46 30 196617 t b b;
> #P hidden newex 294 420 50 196617 gate;
> #P toggle 298 115 19 0;
> #P window setfont "Sans Serif" 12.;
> #P number 289 133 28 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P button 298 97 19 0;
> #P window setfont "Sans Serif" 9.;
> #P hidden newex 378 81 40 196617 uzi 3;
> #P hidden newex 571 216 50 196617 print;
> #P hidden newex 435 80 40 196617 t b b b;
> #P hidden newex 552 176 50 196617 zl group 2;
> #P hidden newex 544 144 111 196617 scale 1 1000. 0. 1.;
> #P hidden newex 544 113 70 196617 random 1000;
> #P hidden newex 435 111 70 196617 random 1000;
> #P hidden outlet 168 350 15 0;
> #P button 27 133 19 0;
> #P hidden message 345 151 50 196617 clear;
> #P window setfont "Sans Serif" 12.;
> #P flonum 227 133 49 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 176 133 49 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window setfont "Sans Serif" 9.;
> #P hidden newex 453 190 50 196617 pak 0. 1.;
> #P hidden newex 454 215 93 196617 prepend setrange;
> #P window setfont "Sans Serif" 12.;
> #P number 89 133 84 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window setfont "Sans Serif" 9.;
> #P hidden newex 456 231 93 196617 prepend setdomain;
> #P toggle 47 133 19 0;
> #P hidden newex 80 413 50 196617 gate;
> #P button 67 133 19 0;
> #P window setfont "Sans Serif" 12.;
> #P flonum 21 303 168 12 0 0 8224 3 255 255 255 255 255 255 222 222 222 0 0 0;
> #P window setfont "Sans Serif" 9.;
> #P hidden newex 80 393 50 196617 line 0.;
> #P window setfont "Fleftex Mono" 12.;
> #P comment 93 119 82 -2009071604 [DOMAIN];
> #B color 1;
> #P user panel 20 52 304 271;
> #X brgb 132 132 132;
> #X frgb 0 0 0;
> #X border 1;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P hidden connect 2 0 3 0;
> #P hidden connect 19 0 35 0;
> #P connect 4 0 35 0;
> #P hidden connect 13 0 35 0;
> #P hidden connect 9 0 35 0;
> #P hidden connect 7 0 35 0;
> #P hidden connect 26 0 14 0;
> #P fasten 35 1 42 0 124 354 32 354;
> #P hidden connect 30 0 6 0;
> #P hidden fasten 5 0 4 0 85 297 28 111 72 111;
> #P hidden connect 31 0 4 0;
> #P hidden connect 35 1 2 0;
> #P hidden fasten 6 0 5 0 52 279 85 279;
> #P hidden connect 32 0 8 0;
> #P hidden fasten 28 0 2 2 531 316 125 316;
> #P hidden fasten 2 1 5 1 125 393 125 393;
> #P hidden connect 3 0 15 0;
> #P hidden connect 33 0 11 0;
> #P hidden connect 34 0 12 0;
> #P hidden connect 25 0 26 0;
> #P hidden connect 27 1 26 1;
> #P hidden connect 14 0 13 0;
> #P hidden connect 23 0 27 0;
> #P hidden connect 27 0 22 0;
> #P hidden fasten 24 0 22 1 294 69 413 69;
> #P hidden connect 22 0 20 0;
> #P hidden connect 20 1 16 0;
> #P hidden connect 11 0 10 0;
> #P hidden connect 10 0 9 0;
> #P hidden connect 8 0 7 0;
> #P hidden connect 12 0 10 1;
> #P hidden connect 8 0 16 1;
> #P hidden connect 29 0 28 0;
> #P hidden connect 20 0 17 0;
> #P hidden connect 17 0 18 0;
> #P hidden connect 18 0 19 0;
> #P hidden connect 16 0 19 0;
> #P hidden connect 19 0 21 0;
> #P hidden connect 11 0 18 3;
> #P hidden connect 12 0 18 4;
> #P pop;
>

Cheers
Gary Lee Nelson
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson


July 24, 2007 | 12:46 am

On 7/23/07, Gary Lee Nelson wrote:
>
> Use lines.

… or line~ :)


July 24, 2007 | 10:05 am

Line~ requires that audio is turned on.

On 7/23/07 8:46 PM, "e.g.r." wrote:

>
> On 7/23/07, Gary Lee Nelson wrote:
>> Use lines.
>
> … or line~ :)
>
>
>

Cheers
Gary Lee Nelson
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson


July 24, 2007 | 9:31 pm

The plain-vanilla line object does not understand multi-pair lists.

This is actually documented. Part of the reason is that you can send a triple (three-element list) to specify goal/duration/time-grain

You’ll have to split the list that function spits out into duples, and insert a delay before passing the next duple to line. The zl object and/or LObjects will be helpful.

Otherwise you’ll have to follow Gary’s suggestion and move to the MSP domain and use line~.


July 25, 2007 | 9:19 am

>The plain-vanilla line object does not understand multi-pair lists.
>
>This is actually documented. Part of the reason is that you can send
>a triple (three-element list) to specify goal/duration/time-grain
>
>You’ll have to split the list that function spits out into duples,
>and insert a delay before passing the next duple to line. The zl
>object and/or LObjects will be helpful.
>
>Otherwise you’ll have to follow Gary’s suggestion and move to the
>MSP domain and use line~.

or use ej.line

ej.externals

best

kasper

Kasper T. Toeplitz
noise, composition, bass, computer

http://www.sleazeArt.com

http://www.myspace.com/sleazeart


July 25, 2007 | 1:33 pm

Thanks everyone for the replies,

I’m still trying to figure out what aproach would be best, but I’ve
got plenty of ideas now.

Thx again

Pieter

On 25 Jul 2007, at 11:19, Kasper T Toeplitz wrote:

>> The plain-vanilla line object does not understand multi-pair lists.
>>
>> This is actually documented. Part of the reason is that you can
>> send a triple (three-element list) to specify goal/duration/time-
>> grain
>>
>> You’ll have to split the list that function spits out into duples,
>> and insert a delay before passing the next duple to line. The zl
>> object and/or LObjects will be helpful.
>>
>> Otherwise you’ll have to follow Gary’s suggestion and move to the
>> MSP domain and use line~.
>
> or use ej.line
>
> ej.externals
>
> best
>
> kasper
> —
> Kasper T. Toeplitz
> noise, composition, bass, computer
> http://www.sleazeArt.com
>
> http://www.myspace.com/sleazeart
>
>


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