Tune sample with midi keys

Larry Xu's icon

Hello, everyone. Hopefully someone can point me in the right direction, thanks in advance.

I want to tune samples with midi keys, I have a feature that generates midi keys in a specific scales, and I want to use these to tune my samples, I've tried the groove and retune objects methods but they don't seems to reach it.

hope I expressed myself clearly, if anything is unclear, please let me know.

Source Audio's icon

you need distance to original tune or speed factor, depending on how you want to "tune" your samples.
If you use allready working midi sampler, than you could use pitchbend to retune the scale.

if you want to simply change one sample's sped or pitch using semitones or cents, use transratio in max examples.
here it is in open form:

you connect that bottom float to your player to set speed or pitch factor.

Max Patch
Copy patch and select New From Clipboard in Max.