Control of pulleys in transmission