# FMOD\_DSP\_TYPE\_PITCHSHIFT problem

**URL:** <https://qa.fmod.com/t/fmod-dsp-type-pitchshift-problem/14991>\
**Category:** FMOD Engine\
**Created:** [August 28, 2019, 12:54pm UTC](https://qa.fmod.com/t/fmod-dsp-type-pitchshift-problem/14991 "2019-08-28T12:54:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flone](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/flone/32/590_2.png) [@Flone](https://qa.fmod.com/u/Flone)\
**Post date:** [August 28, 2019, 12:54pm UTC](https://qa.fmod.com/t/fmod-dsp-type-pitchshift-problem/14991/1 "2019-08-28T12:54:09Z")

</div>

With FMOD\_DSP\_TYPE\_PITCHSHIFT added to the master channel (FMOD\_DSP\_PITCHSHIFT\_FFTSIZE is 4096) small parts of silence (in audio track) sounds with clipping sound (i.e. weird sound).

What should I do to stop this?

---

<div class="post-metadata">

**Author:** ![Flone](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/flone/32/590_2.png) [@Flone](https://qa.fmod.com/u/Flone)\
**Post date:** [September 3, 2019, 1:07pm UTC](https://qa.fmod.com/t/fmod-dsp-type-pitchshift-problem/14991/2 "2019-09-03T13:07:13Z")

</div>

Right now I use setBypass(true) when ‘pitchshift’ == 1.0f. But with this effect != 1.0f clipping sound still presents. I guess you can fix it but increasing DSP buffer but I won’t do that because of the delay. So, maybe there is an easy way of doing something with this weird sound or the only solution is to change the buffer?

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [September 9, 2019, 1:46am UTC](https://qa.fmod.com/t/fmod-dsp-type-pitchshift-problem/14991/3 "2019-09-09T01:46:01Z")

</div>

I can’t say I’ve heard of clipping happening with silence. Have you got a recording of this happening?

Can you also confirm if you get the same problems when lowering the FFT size?

---

<div class="post-metadata">

**Author:** ![Flone](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/flone/32/590_2.png) [@Flone](https://qa.fmod.com/u/Flone)\
**Post date:** [September 9, 2019, 5:36am UTC](https://qa.fmod.com/t/fmod-dsp-type-pitchshift-problem/14991/4 "2019-09-09T05:36:26Z")

</div>

Hey Richard. Thanks for the reply! Yes, this also happens when lowering the FFT size.  
I’ve made a little project with 2 examples of this problem.

[Link on GoogleDrive to the project](https://drive.google.com/open?id=1xzOknplpuTIFv2uhimV0GlLyMMlH59eX)

There is a VS solution file I recommend you to open it or you can just run the build version to see examples.  
After that, please, listen to the audio files in the ‘ide’ folder on those moments that were highlighted in the console output.

At those moments there are short (very) sections of silence (you can hear that there is actually silence if you just listen to the files at these moments in the audio player) and in these sections of silence, on my computer, a sound similar to clipping sound is heard.

The main problem is that in a regular audio player everything sounds as it should at these moments, but using this plugin and FMOD these moments sound problematic and not like in an audio player at those moments. And so without this DSP all also sounds fine.

P.S. You can increase this ‘clipping sound’ effect if you add another PitchShift DSP right after the first one.

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [September 11, 2019, 1:15am UTC](https://qa.fmod.com/t/fmod-dsp-type-pitchshift-problem/14991/5 "2019-09-11T01:15:00Z")

</div>

Thanks for bringing this to our attention. We’ve been able to reproduce it on our end and I’ve added a bug report to our tracker. We’ll take a look into this for a future update.
