Continuous transition between traveling mass and traveling oscillator using mixed variables