How to add data you don't know what type is to a list

    Oct 29 2015 | 9:34 pm
    Hey guys!
    So I tried to search for a solution to this problem, but no luck so far.
    As the title says, I need to add a piece of data to a list, and it could be anything from a bang, to a list, float, int or symbol. I attached a little patch to show you what I would like to be possible. In fact, I would like the solution to work exactly like a pack object. I tried solutions with "append" and a message box with "set $1" above it, which works for most things, but is bad for lists. Anyone got a universal solution here? I would really appreciate a solution ASAP, since I'm kinda on a deadline here!
    If anyone is curious, I'm using this for a patch that does automation of parameters in max, together with the Transport object.

    • Oct 29 2015 | 10:11 pm
      Look into the "zl join" object.
    • Oct 30 2015 | 2:59 am
      [join] is generally more flexible than [pack].
      The only downside is you can't list default values for the elements.
    • Oct 30 2015 | 1:04 pm
      That definitely did the trick!
      The downside you are talking about is a good thing for my patch to_the_sun, [join] is perfect here! Thanks a lot guys.
    • Oct 30 2015 | 6:21 pm
      Example of routing different data-types: