Soft Potentiometer and fixed values

Hi there, I am using a soft potentiometer to drive graphics in processing. It's running through a Diecimilla. I need to figure out a way to get the soft pot to generate fixed values. Whenever you remove the actuator (a finger in this case) from the surface of the pot the values default to a base value. I need to devise a method to programmatically (in Processing) assign a constant value to the variable tied to the soft pot so it holds a value unless there is input.

I'm fairly certain this is a fairly generic piece of code if anyone can point me in the right direction I'd be grateful.

You need a pull up resistor when using the soft pot because when you don't press anything it has a floating output.