Forums > MaxMSP

Stop Empty Textedits from getting through

September 11, 2013 | 3:23 pm

Hi I’m routing a text edit to a [route text]. I want to stop empty text messages going down the pipe. I’m finding it very difficult. Anyone got any ideas? Looking at the forum, it seems working with null values is troublesome.

September 11, 2013 | 5:56 pm

not sure if this is what you want…


— Pasted Max Patch, click to expand. —


September 12, 2013 | 9:34 am

Thanks that did the trick!

September 12, 2013 | 12:29 pm


perhaps a bit late, but The sadam Library contains an object called [sadam.empty], which would detect (or generate) empty strings.


September 14, 2013 | 7:16 am

Thanks Adam for the suggestion I eventually went for a JS solution as i could combine so many objects (route,prepend,change (for symbols?)in a few lines of code. The more I use Max the more I end up just writing a js for what should be simple things. I don’t think max is that good for simple non realtime data processing. Detecting an empty string should be a lot easier than this. It’s just a bit messy having to link up a new js file or the time, would be nice if you could ’embed’ a js like the way you double click a col object to see some stuff. Anyhow just my 2 cents.
Here’s my script it’s simply to pipe a host into a udpsend object. I can now just have this inbetween my textedit and udpsend object.

var lastHost = "";
function text(host){
if (typeof host != "undefined" && host !=lastHost){
outlet(0,"host" , host)

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

Forums > MaxMSP