Driving a slider with an envelope generator