Sample length in keyzones

I there a way so that only the tone of a sample changes as you hit different notes on the piano keyzones? I want that the original length of the sample remains, when playing a melody with it. Now it get’s pitched by default. I think you should be able to choose between those two options. Maybe I’m overlooking something. Is there a way to do this already?