Electrodes were placed over 9 residual limb muscles and EMG signals were recorded as patients ambulated and completed 20 circuit trials involving level-ground walking , ramp ascent and descent , and stair ascent and descent .