Updates current wave position and value. Oscillator increments its position until position reaches period. After that position will return to 0. If oscillator has period property that value is 100, it means 100 times of update() make oscillator to move initial position.