Forums > MaxMSP

Zero Problem… Can you solve it?

March 4, 2012 | 2:42 pm

Hi, I’m new to Max, so don’t be too harsh on me… so how can you say "all float numbers pass except for 0. (zero)" and "replace zero with X" in max language?
I have a float number box that determines the playback speed in a sfplay~ objet. I want it to be looped and never stop, so I can’t have 0. on that float number box… I tried a few ways to go around it but I wasn’t able to solve it. I’ll be glad if you can help me. Thanks.



dtr
March 4, 2012 | 3:30 pm

[if $f1!=0. then $f1 else X]


March 4, 2012 | 5:38 pm

Thanks!

@vanille béchamel: Hey your expression doesn’t work… it reports this error: "(…) has a comma or semi comma" … if I remove the semi comma it says: "bad gt string"…



t
March 4, 2012 | 6:35 pm

you can also use select object:

– Pasted Max Patch, click to expand. –

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