Returns the <object> with a a desired duration <dur>. The processing is done through scaling of the duration values.