As usual, I'm at work right now, which seems to be the time I daydream the most about trying things in Pd..... but I'm at work, so I can't. So the next best thing is have somebody else figure it out for me.

What would the "math" be between a speed control and a pitch control to achieve time stretching. I have a slider that slows down a sample, and I also have a pitch shifter connected to it with it's own slider. I can operate them independently, but I want to work it out where when I slow it down from "1" (being the normal speed) the pitchshifter would bring it up so that the original pitch always be maintained.

As it is now, 0.5 would be half the speed, so the pitch would have to go up by 12 numbers. 0.25 is 1/4 the speed, so the pitch would need to increase by 24, and so on.

I remember a crossfader thing that I learned from someone on here, and I'm guessing it would use a similar approach but with different numbers.

(p.s. - I've been asking so many questions on here lately I feel like I should be paying tuition. I really appreciate the help!!!)