Let's Join Together In Completing This Nyquist Prompt For Usage

That makes a lot of sense!
I asked ChatGPT a question: “Does pitch stretch the audio in audacity”

ChatGPT said:

ChatGPT

Yes, pitch shifting in Audacity can affect the length of the audio depending on the type of pitch manipulation applied.

  • Pitch Shifting (without time-stretching): If you change the pitch of an audio without using time-stretching, the audio will also speed up or slow down. Higher pitches will shorten the audio, and lower pitches will make it longer.
  • Pitch Shifting (with time-stretching): If you use “Change Pitch” in Audacity with “Stretch” mode enabled, Audacity will adjust the pitch while preserving the original length of the audio. This allows you to shift the pitch up or down without altering the duration.

In summary, pitch shifting in Audacity can stretch or compress the audio depending on whether time-stretching is applied alongside the pitch change. If you want to preserve the original timing, make sure to use the time-stretching features.

There’s gotta be a work-around here.
In the code, it sounds like it’s doing the former, and not the latter.

Maybe the code, I just posted previously, is like the latter. Tell me if I’m wrong.

Basically, how would I make it so that the tempo is the same (resulting in stretching… wanted in this case) as opposed to non-stretching audio (which is what we have already, that changes its tempo to keep the given audio at an - unchanged duration)?

Nyquist’s pitshift function is similar to Audacity’s “Change Pitch” effect. It stretches the pitch while retaining the same length.

A “flanging” effect will occur whether the pitch and length are stretched together, or if the pitch is stretched retaining the same duration. The flanging effect occurs because when there are two (or more) sounds with slightly different pitches, the waveforms will gradually move in and out of phase with each other. For example, if you play a 1000 Hz sine wave and a 1001 Hz sine wave at the same time, you will hear how they create "beats"at a rate of 1 Hz as the waveforms reinforce and cancel out each other.

1 Like

I’m saying - that which ever way the pitch shifting works in the code…can we do it the other way, try this approach, and test it?

I really appreciate you, your time, and your collaboration with me Steve! :pray:

Sure you can, but don’t expect me to do it for you, especially as I have spent the time explaining to you why it will cause the “flanging” sound whichever way you do it, and so far you have shown no real interest in learning how to use Nyquist yourself, or really anything about audio or real science.

Not really, if you convey pessimism towards me.
I’ll just do whatever form of encouragement for the project that gets the job done.
Interacting with people and seeking public engagement doesn’t seem to do it, I guess.