Filtering only big changes (Processing)

the picture is only showing 2 channels, I think its pretty clear that both channels exhibit noise in the bottom (unfiltered) and even more noise on the upper part (filtered). I noted earlier that I am only doing 2 channels for now. (purple is one, red is the other).

As for removing 80% of the picture, I am not sure what 80% do you mean. the screenshot of the code is only to show the difference between each code (and its output), the other part of the code was copy/pasted into this thread earlier, I only wanted to show the difference (which I clearly highlighted IMO)

The serial output and code from the arduino was also copy/pasted from their source earlier in this picture.

And as mentioned there is only 2 channels, and they are pretty clear and different colors, even though I understand why working only 1 channel is beneficial, working 2 channels does not make it any more confusing since its only the same arithmetic operation just copy-pasted into a different channel.

Also, as I mentioned Earlier I am subtracting 500 from the data since, as you said arduino ranges from 0-1023, HOWEVER, all of my values are above 600, I havent seen a single value drop below 600 (rarely gets to 700 actually), and If I leave it as is, I get the following graph:

NOTE: THIS IS ONLY 2 CHANNELS WITHOUT SUBTRACTING 500 FROM EACH VALUE:
as you can see in the code, it only draws 2 lines.

As you can see the graph is almost at the top of the screen, meaning if I ever got a value over 900 it would pretty much just color the whole screen without really giving me any useful data.