Forums > MaxMSP

Two-way number conversion

Oct 23 2012 | 2:20 pm

Hello all! I’m new here to the forum, and something’s been bugging me which I can’t figure out.

I’ve made a patch which coverts a number (in flonum) to a different unit of measurement.
So I essentially have two flonum boxes which say

FLONUM degrees C = FLONUM degrees F

Question is, what can I do to the patch to make it backwards compatible? As in, so when I modify the value of ‘degrees F’ it changes the ‘degrees C’ flonum without creating a loop and stack error? Anything which does not require extra Max externals would be great!

Thanks :)

Oct 23 2012 | 2:27 pm

I don’t believe that you’ll be able to get away with using not extra Max objects at all, but have you taken a look at the "set" message?

Oct 23 2012 | 2:33 pm

I didn’t consider that. What would it allow the patch routing to do?

Oct 23 2012 | 3:29 pm

As the refpage says, it sets a value without causing output, which is how you avoid stack overflows

Oct 24 2012 | 4:33 am

that´s a cool definition of "backwards compatible".

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

Forums > MaxMSP