Have external input (swipe or envelope) as phase/index into sampler

Hi everyone,

I am totally new to JUCE. I tried to build the following in AudioKit, but it was not possible, that’s why I came to the JUCE forum :wink:

I want to be able to have some input: the position of a touch/finger (iOS) or an envelope (changing values mapped over time) to control the playback-position/phase/index into a sampler synthesizer.

Is this possible in JUCE and if so, what components do I need?

EDIT: I am not talking about phase-vocoding or any synthesis where time and pitch are independent of one another. I am talking about replacing the regular ramp signal of a sampler index that you see in a normal forward moving sampler with something controllable/variable

Thank you for your help,