Continuous variable encoding by ponderomotive interaction