Forums > MaxMSP

Commenting in a "coll" file

February 5, 2010 | 3:08 pm

What is the syntax for adding a comment in a "coll" file. I’ve tried a couple different commenting styles but no luck, or is there even a way to comment in them?


February 5, 2010 | 3:20 pm

It depends on how you use your coll.

If you use it as an associative array, you could insert lines like:


comment, this is a comment;

But if you read it with nth, next, etc., then I’m afraid there is no way.


February 5, 2010 | 3:45 pm

Thanks!


February 5, 2010 | 4:14 pm

Of course you could just prepend any line you want to comment with for instance // and then use route at the outlet of the coll object.

– Pasted Max Patch, click to expand. –

February 5, 2010 | 4:38 pm

@Florito.

But this won’t work with nth, next, etc. neither as the comments will count in the index.
Of course, you could imagine a procedure like: if I send a next and receive a comment , then let’s send another next until I receive real datas. But I don’t think it is really elegant nor efficient…

p


February 8, 2010 | 10:22 am

Hmm I think I’d keep a separate coll for comments, so you just have 1 comment per index. Unless you store your data like in an array, then you could have 1, item1 item2 item3 comment; every line (but you need to put in all the values at all times).


February 8, 2010 | 11:59 am

Something like this maybe?

– Pasted Max Patch, click to expand. –

_
johan


February 8, 2010 | 12:20 pm

If you copy the commented coll into an uncommented, next and nth would work:

– Pasted Max Patch, click to expand. –

February 8, 2010 | 9:07 pm

Good idea!


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