[route] problem

Mar 8, 2009 at 2:34am

[route] problem

Hi

I’m building an patch capable of read an sentence and tell if the sentence’s syntax is correct, but when the item is an number, int or float, the route object do not let the message to continue it’s way!

Any thing wrong with this? or it’s an [route] problem?

– Pasted Max Patch, click to expand. –

Thanks

#42726
Mar 8, 2009 at 3:40am

Because “3 p” begins with a number and has more than one item it is considered to be a list rather than a number. Try a combination of [route list] and [zl slice 1] as in the example below. I hope it helps.

lh

– Pasted Max Patch, click to expand. –
#152979
Mar 8, 2009 at 2:07pm

At some point, it solves the problem but not entirely!

if the user do not enters an number but anything else, the patch will say “good syntax”

Check this!

– Pasted Max Patch, click to expand. –
#152980
Mar 8, 2009 at 2:16pm

… but the point is…. I’ve made the same thing with MAX4.6 and I don’t remember this problem…it worked (long time ago!) I just don’t understand why MAX5 doesn’t!

#152981
Mar 8, 2009 at 2:55pm

Hi Rui, see if this is what you need

m

– Pasted Max Patch, click to expand. –
#152982
Mar 8, 2009 at 3:14pm

Hi Rui,

And this works as well.

best,
Zachary

– Pasted Max Patch, click to expand. –
#152983
Mar 9, 2009 at 4:13am

Hi

Those solutions work well.

Since this is not an “realtime” application, it will only to check syntax and translate to “realtime code”, the complexety of the patch is not important.

I guess that I’ll combine your two ways and add an extra feature: the capability to change what’s being checked!

When it’s ready I’ll post here… that could be useful for anyone!

Anyway… Thanks alot!

#152984

You must be logged in to reply to this topic.