...
How do I write program to use both the current and previous values for volume? Im sure it can be done, I just can't figure out how to do it.
...
If you only need one previous value, there is a simple answer to your question: Use two volume variables.
It looks like you already have two, i.e. V and V2, but you're only using one of them. I'd rename V2 something more descriptive, like OldV or something, and make it so V has a value before you start the loop. The only addition to the loop would be to add a line at the start that says 'OldV = V;'--then you can do whatever you want with V in the loop body, since you've already stored the previous value. Once you've calculated a new value for V, you can use both the current and previous values as much as you want. OldV will only ever hold the most recent value of V.
Hope that helps.
--sg