OK, thatâs what I was trying to figure out. It sounds like youâll want some sort of waveshaping function, unfortuantely thatâs not really my area of expertise.
This is because your original signal contains an entire spectral envelope â fundamental frequency, whatever harmonics are already present, and probably some noise content â and a pitch shifter shifts this entire signal. So pitch shifting up one octave will reproduce the original fundamental, and the original harmonics present, and the original noise content all up one octave.
It could be possible to isolate just the original fundamental frequency before pitch shifting, which would give you more of a âpureâ shifted frequency.
The issue here is that a âharmonicâ naturally produced by an acoustic instrument is not an exact copy of the fundamental frequency at a different pitch, itâs more of an acoustic resonance that produces additional frequencies, but also has an auditory effect on the fundamental frequency itself.
Itâs possible waveshaping is the answer. You could also look into physical modeling synthesis, to model the ways that an acoustic signal would resonate with its harmonics⌠¯_(ă)_/ÂŻ