line

djtoshi182's icon

Hello.

I am confused trying to use message command for line object.
I was going to make a change for 4 values by message inputs to each line objects, when it bangs to one value then only that value going up and others going down by using message command..
but how can I change already changed value using line?
value has to be in float number.

djtoshi182's icon

how can I make patcher in code?
I want to upload it here.

seejayjames's icon

check the Sticky "Max Arcana", it will tell you how to upload etc. It's Edit-->Copy Compressed, then paste that here. But it's a good thread to read for other things too.

[line] can be a little tricky at first. I found the easiest way is to just send it pairs of values, like "1. 1000" which will ramp to 1. (from wherever it's currently at) over 1000 msec. Though you can also specify start and end points like "0., 1. 1000". Note the floating points in there as well as the comma. In this way, you're sending two consecutive messages: first 0. which will make line jump to 0. immediately, then you're telling it to ramp to 1. over 1000 msec.

djtoshi182's icon

Okay! got it.

I would like to use line for routing signals,
If one signal counts goes up, then all other output numbers should goes down to minimum if there's any up or counting.
so, I used message command to not assigning counting start point. but it seems not working maybe because output is not initialized?
anyone can help me?

Max Patch
Copy patch and select New From Clipboard in Max.

Noob4Life's icon
Max Patch
Copy patch and select New From Clipboard in Max.

if you want to route signals, better to use the signal version line~ but you can easily mod this patch for the regular version, too:

Max Patch
Copy patch and select New From Clipboard in Max.

but matrix~ is also good for this kind of thing:

hope it helps.

________________________________
*Never fear, Noob4Life was never here!*