Forums > MaxMSP

Setting a coll object's identity with text

June 8, 2010 | 3:44 pm

Hello, I am currently designing a system where I can type in text to route a recorder~ object to record into a specified buffer. I am also using a special patch which uses a bonk~ object to create time markers within the buffer, so you can know exactly where certain events in the recording begin for later use.

I would like to design a simple system in which I type in text which automatically routes the recorder to the correct buffer AND the correct coll object. The buffer is easy, just use a textedit object and prepend "set" to a message sent to the recorder~. Unfortunately, coll is more difficult. To record to different colls, I have to make a list of them and use a gate to select which one it is going to. The names of the buffers are tester1, tester2, ect. So in theory, if I could strip the name of its numeric value, say 2, I could make the gate respond to that, but it is not a list, and I am not sure if this is possible.

I was hoping to find a way to make one text assignment do all of the routing I need. Type in one name, and then have a different ending for the coll which is appended and then sets its identity. Any suggestions? I am attaching the file, but it is my first time, so let me know if it doesn’t work. If you don’t have bonk~, there is also a manual mode…

Thanks!

Attachments:
  1. Recorder1.maxpat

June 8, 2010 | 4:10 pm

have u tried to use the refer message for coll to write the data without using the gate approach

j

– Pasted Max Patch, click to expand. –

June 8, 2010 | 5:29 pm

Refer is the way to go here, for sure.


June 8, 2010 | 6:21 pm

Thanks a bunch. I tried using refer to begin with, but I guess I needed to add a 1 at the end of the coll object I was sending to… Interesting. As in "refer var1-data" and then the coll object must be named "var1-data 1". I was just naming the object "var1-data". It works!


June 8, 2010 | 6:28 pm

FYI, the 1 means that [coll] wont search the max search path a text file with that name.


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