Setting a coll object's identity with text
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…
have u tried to use the refer message for coll to write the data without using the gate approach
----------begin_max5_patcher---------- 666.3ocyW1rbaBCDG+L7TngyNNRBK9n25yQmLdDfri5.BOfH0sYRe1qzhwFm D2Ab.O9fwiVVs5u9wJoUu553kTtWT6g9F5GHGmWccb.SVCNGZ63Uv2mlyqA2 7RKKJDJs2h12oE60f8GeDUI1kySEnLtli3ZjTkI1i1TUVfT7BQFJsLOG0TKU aM9tQTgJD007shtfoZJjpbgFFIxAixLH9kI+7AxpNO2Tpz1XBu56URdduXT1 n6BBtm+0x+.9SvK6LuiqSe1Hm0UhTcKEngglWihsNYZDa+iDsDidx1k2bcsO VLPXoD+xn6Ovp7RdVBWscvya5Xm2cAo0j926DsyNOXXQOMZr3GAXg3C.gQ+R X4ce1OxELhgM5.inX7mxF5mvFx0xlcUhZSlLWKKU8S.vrSI.cONRrO.zqAlm MDAsoXASNKIVNhVMbRhmZRxBfEQT+YDkmMFrn4hkzkLyXYxOGJMimbXB4Ljv f4Dl8GiffYAls67+Buh9f8fhgxynIlmr18yHqlObd1PDNyzjLJZFNYGnb8fI lLAb4BmvZqzXnmtxFKKVcQVrn2uqfKjPXWLxJfLr3krtCYOzmZ9Khr0FQa5x ZtVWISZzs0u4bDPNdhhDAL+vfA.oSHXOs3EQFJj8uifLrIGcEv59E3c2.4jl MlU0+sky0prgB4QWdL8RPdioDUskvWa8hAQsPFJTLxeNphtKUjLxTQ5cWpH3 0cepHYLohj6tTQb7+IUDBqWtT89KCCwyZ+bzUW1Tk1ovtqngN8gKSTqkJnli 9NgOyomkYYBU+qoVHy1UJU5Ch3BqVlTMEeakDY.RhcakDd.Rx+lJo3AnH5MU QQS+mMy0Krk232dkiH5wVeQoFNaR0rMC6jTssd2dHtu49OvSxgWD -----------end_max5_patcher-----------
Refer is the way to go here, for sure.
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!
FYI, the 1 means that [coll] wont search the max search path a text file with that name.
Forums > MaxMSP