Forums > MaxMSP

Line Argument Question

Apr 16 2012 | 12:17 am

I’ve been wanting to find a way to implement arguments into the [line] object in real time but i’m having a major issue trying to add a comma into the argument. So essentially i’m trying to group together a statement that will add the comma (ex. 0, 50 10000) but every time I try to combine an int that has a comma attached, it will disappear. I attached the patch to this point and hopefully someone can help me out with this. Thanks for reading!

  1. LineComma.maxpat
Apr 16 2012 | 12:39 am

The comma to separate messages is only meaningful in a message box, and separates one message from another. So "2426, 2082 3536" in a message box is really just two separate messages: "2426" followed immediately by "2082 3536" (or, more exactly, "int 2426" followed by "list 2082 3536"). You may have known that already, but the point is that you don’t need to assemble them in a message box; you can just send those two messages separately, one immediately after the other, and the effect will be the same.

Apr 16 2012 | 2:24 am

There I go overworking again! This works perfectly for what I want to do. Thank you for responding and saving me time :)

Apr 17 2012 | 3:17 am

use one of the 2 examples

— Pasted Max Patch, click to expand. —
Apr 17 2012 | 3:19 am

the "," will append a comma after the first variable or value in a message

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

Forums > MaxMSP