How do I dynamically add special characters to a message
Hey,
I am relatively new to max, about a month in, and I am trying to make a patcher that dynamically creates a line~ envelope with a variable amount of points. The idea is starting a message with "0," and then iteratively adding the requested number of nodes in a linear ascent.
The issue is, I need to reset this message to "0," when the parameters change. If I trigger a "set 0," I just get "0". If I trigger a "set 0\," I get a "0\,".
I do not want "0" I do not want "0\," I want "0,"
Is there a way to do this other than hand typing it into the message?
Thanks,
Matt
Consider that the comma inside a message object splits the message in two, so you can just use [trigger] to send the 0 before sending the other values.
As suggested above you can start by triggering the 0 first and then generate the list of points. But also a single float to line just means go directly to that point. You can therefore also start the list with 2 0's which would mean go to 0 in 0 milliseconds. example: (0, 1 1000) equals (0 0 1 1000).