Automated Sample Start/End Loop Points

Is there a way to automate sample start/end loop points without having to record output and manually pull the start/end marker? If you play a sample and gradually shrink the loop length, there’s a neat glitchy effect I want to use. I guess technically I could tinker with 09xx and BPM automation until I die, but I just wanted to know if anyone had any information about this, or possibly some VST that does something like it.

EDIT: Oh wow, I just found a similar topic.