MIDI controlled sampler. If you know how sampling keyboards like the SK-1 work, it’s the same basic concept. Playback speeds are mapped to a midi keyboard. Dead simple.
May put up a download link, I dunno if it’s finished enough.