Convert from an input pulse frequency to output another in near real time?

It is called a frequency shifter. It is used in things like auto tune to bring a singer’s voice back into key.

The simple ways of doing this are not accurate, and a lot of systems do not do it in real time. But record the sample and then apply sample scaling by interpolation of the samples to get more or less samples than the original.

In real time you can use the voice effect like I did in this project video.

Pico Voice