i need to transform a stream of data (numbers) i receive from the serial port in numbers that behave in the opposite way.
there, where i have great values (8000) i need 0 and when the great value decrease i need the small one to increase (7999=1)…
i don’t know if my explanation is clear enough… i rekon it’s called inverse proportionality and i suppose it’s easy to do but i’m a stupid with numbers.
how can i do it with max math?
thank you very much