Please excuse my being a beginner

I have this sound I'm working with that I really dig. There is something I am confused about though. When I move from say the middle C to the C in the next octave, the oscillator rate increases dramatically. How do I fix the rate to a certain speed rather than have it increase as I move up the scale? I want the oscillator to stop following me
