Create a ramp using [line]
I am trying to create a patch in M4L that will use a given number of milliseconds from 0 to 1 and then the same number of milliseconds to go from 1 to 0. However I can't get it to work. Any suggestions on what I am doing wrong?
Any suggestions on what I am doing wrong?
Prbbly you are overthinking the problem...
Of course you can do it with sprintfs, but it seems somehow awkward:
Thanks for the advise! It works fine :-) However I do not quite get the meaning of the message:
0 0 1 $1 0 $1 What is the first 0?
I am not very experienced with Max/Msp and I always find the documentation and help files inadequate. Any tips for figuring out things like this?
[line~] (and recently [line]) can receive list of linear segments formatted as pairs TARGET_VAL TIME TARGET_VAL TIME and so on, so this case first 0 0 means go to 0 value in 0 ms time – so jump immediately. The notation "0, x y" is only for message object where separate messages are marked by comma sign. Sending single number to [line] make it jump to the value instantly, then (in the next message) it gets instruction to go to x value in y ms.