Forums > MaxMSP

Test messages to see if they are only whitespace?

June 25, 2010 | 8:07 pm

Is it possible to test a textedit objects output to see if it only whitespace?

I have a patch that takes the outpur of a textedit and passes it to aka.speech. The patch uses the aka.speech object’s bang on finish to reset the text box, but if the textedit is only whitespace, the bang never gets sent since nothing is spoken.

Thanks

– Pasted Max Patch, click to expand. –

June 25, 2010 | 9:17 pm

I don’t have the aka stuff, but you can test for this with an attached pattr:

– Pasted Max Patch, click to expand. –

-Ben


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