# Pitch Shift audio quality degrades with automation envelope

**URL:** <https://qa.fmod.com/t/pitch-shift-audio-quality-degrades-with-automation-envelope/20866>\
**Category:** FMOD Studio\
**Created:** [November 11, 2023, 2:25pm UTC](https://qa.fmod.com/t/pitch-shift-audio-quality-degrades-with-automation-envelope/20866 "2023-11-11T14:25:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![EdGray](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@EdGray](https://qa.fmod.com/u/EdGray)\
**Post date:** [November 11, 2023, 2:25pm UTC](https://qa.fmod.com/t/pitch-shift-audio-quality-degrades-with-automation-envelope/20866/1 "2023-11-11T14:25:15Z")

</div>

I’m having an issue where automating the pitch parameter in Pitch Shifter is causing a degrade in audio quality over time. If I have the below envelope set, then no matter what the parameter value is, the sound quality will degrade over time, even if the parameter is unchanging (I tested it on read-only as well). The audio quality can be ‘brought back’ temporarily by changing the fft size or moving some of the envelope nodes. It will then start degrading again. The only way to stop this is to remove the envelope entirely.

Is there any way I can still automate the pitch but avoid this behaviour?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/9/9f58af0ce6550360d10047a8624ad658a8f2e4b1.png)

---

<div class="post-metadata">

**Author:** ![EdGray](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@EdGray](https://qa.fmod.com/u/EdGray)\
**Post date:** [November 11, 2023, 2:34pm UTC](https://qa.fmod.com/t/pitch-shift-audio-quality-degrades-with-automation-envelope/20866/2 "2023-11-11T14:34:40Z")

</div>

After a bit more playing around if I put a flat section in the envelope like this:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/4/42696212e296a2da98658dec61a54242431848ab.png)

it avoids the audio degradation. It is weird though that a static parameter causes the behaviour described in my first post!

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [November 14, 2023, 3:29am UTC](https://qa.fmod.com/t/pitch-shift-audio-quality-degrades-with-automation-envelope/20866/3 "2023-11-14T03:29:20Z")

</div>

Unfortunately, I haven’t been able to reproduce the issue you’re describing. There is a slight difference between no pitch shifter and a pitch shifter with the default settings, but I have been unable to reproduce anything I would classify as degradation.

Can I get you to provide your FMOD Studio version, as well as a simple set of steps that consistently reproduces the issue? If possible, could I also get you to upload the asset you’re playing, and a copy of it after pitch shifter where the issue is observable? A video showcasing the issue would also do. You can upload elsewhere and link here, or alternatively upload to your [FMOD user profile](https://www.fmod.com/profile#uploads) - note that you’ll have to register a project with us to do the latter.

---

<div class="post-metadata">

**Author:** ![EdGray](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@EdGray](https://qa.fmod.com/u/EdGray)\
**Post date:** [January 12, 2024, 6:05pm UTC](https://qa.fmod.com/t/pitch-shift-audio-quality-degrades-with-automation-envelope/20866/4 "2024-01-12T18:05:28Z")

</div>

Hi Leah sorry for the big delay in replying to you, I’ve only just had time to get back to this. I’ve taken a video of the behaviour - you can hear that when the automation points are removed the audio quality changes and we lose the transients, until I put the points back in and the quality returns. This is in Studio version 2.02.13.

Is this enough or do you still need me to send you the project file?

---

<div class="post-metadata">

**Author:** ![Soundsbyjohan](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@Soundsbyjohan](https://qa.fmod.com/u/Soundsbyjohan)\
**Post date:** [January 15, 2024, 8:05am UTC](https://qa.fmod.com/t/pitch-shift-audio-quality-degrades-with-automation-envelope/20866/5 "2024-01-15T08:05:16Z")

</div>

I’ve experienced the same issue but with the Pitch Shifter in Unity, which I believe is based on FMODs API (Correct me if I’m wrong @Leah_FMOD ). Over time, almost for each playback, it degraded the audio and blurred the transients and positioning even if the settings were static. Disabling and enabeling the effect or changing any settings would reset the blurring “effect”.

Decided to pre-render all assets that needed to be pitched and swap them dynamically instead.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [January 17, 2024, 2:25am UTC](https://qa.fmod.com/t/pitch-shift-audio-quality-degrades-with-automation-envelope/20866/6 "2024-01-17T02:25:34Z")

</div>

> [@EdGray](#):
>
> Is this enough or do you still need me to send you the project file?

Thank you, this is enough to demonstrate the issue. I’ve passed it along to the development team for further investigation.

> [@Soundsbyjohan](#):
>
> Disabling and enabeling the effect or changing any settings would reset the blurring “effect”.

The “resetting” lines up with the expected behavior of the effect, which effectively reinitializes internally on a parameter change.
