implemented PositionInTime property, based on time state management.

This logic is actually ported from xmdsp (and mldsp).