what u mean extract, from a sample? the best way to do that is filtering or eqing out all the extraneous frequencies, depending on the sound of the bassline, youll still have some kick drum in there but you should be able to clean the top end almost completely out.