How to hotswap a sample? (i.e. copy to clipboard, then modify instrument, then paste back in?)

Hi, I’m looking to incorporate pitchbend control to slicing, and i’d love to know if there’s some way i can take “current sample in instrument”, copy it to safe position, then load the xrni with the pitchbend control, then paste the sample back in.

the only usecase would be “1 sample per instrument” - i.e., a drumloop.

how would this be safely done?