# Mid-Side Processing

**URL:** <https://qa.fmod.com/t/mid-side-processing/15426>\
**Category:** FMOD Studio\
**Created:** [January 31, 2020, 5:36pm UTC](https://qa.fmod.com/t/mid-side-processing/15426 "2020-01-31T17:36:23Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Capraise](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@Capraise](https://qa.fmod.com/u/Capraise)\
**Post date:** [January 31, 2020, 5:36pm UTC](https://qa.fmod.com/t/mid-side-processing/15426/1 "2020-01-31T17:36:23Z")

</div>

For an audio-game, I’m trying to do some effects to enhance the perception of success and failure.

One idea was to play with mid-side processing. To do that manually, you would have to have the option to invert the phase, but I can’t find an option to do that inside FMOD. Another option would be to write a custom DSP, but I find it quite hard to get into that and I’m a bit stuck on that.

Maybe I’m missing something major because the newest question regarding this topic on the forum is from 07. How should I proceed?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [February 4, 2020, 5:24am UTC](https://qa.fmod.com/t/mid-side-processing/15426/2 "2020-02-04T05:24:37Z")

</div>

I’m afraid I don’t understand what you mean by “enhance the perception of success and failure.” Nearly any distinctive sound effect can signify success or failure in a game; to what end do you also need mid-side processing?

---

<div class="post-metadata">

**Author:** ![Capraise](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@Capraise](https://qa.fmod.com/u/Capraise)\
**Post date:** [February 4, 2020, 12:41pm UTC](https://qa.fmod.com/t/mid-side-processing/15426/3 "2020-02-04T12:41:16Z")

</div>

Sorry for using such a convoluted term…  
To be more precise: I’ve been playing the vr game audica, where if you miss the target, the audio-width decreases to mono and gradually gets back to a wide image when you succeed.  
I think i found now a pretty good solution by taking a 3d event and setting the distance to 0. The min extent knob in combination with a volume automation does pretty much that, what I looked for.  
Nevertheless I would’ve found it interesting to fool around with mid side processing, but maybe, the effect isn’t as promising as I first thought.  
Thanks for your reply!

---

<div class="post-metadata">

**Author:** ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)\
**Post date:** [February 4, 2020, 11:33pm UTC](https://qa.fmod.com/t/mid-side-processing/15426/4 "2020-02-04T23:33:29Z")

</div>

If you want to adjust the panning of specific events to make them sound wider or narrower, there are a number of ways to do it. You could automate the sound size property of the spatializer effect, for instance, or automate the surround extent of the panner found at the end of any bus or audio track that’s set to a surround channel format, depending on exactly what effect you want.

---

<div class="post-metadata">

**Author:** ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)\
**Post date:** [January 12, 2022, 9:51am UTC](https://qa.fmod.com/t/mid-side-processing/15426/5 "2022-01-12T09:51:23Z")

</div>

Is there any way to do Mid-Side processing though?

---

<div class="post-metadata">

**Author:** ![Capraise](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@Capraise](https://qa.fmod.com/u/Capraise)\
**Post date:** [January 12, 2022, 10:09am UTC](https://qa.fmod.com/t/mid-side-processing/15426/6 "2022-01-12T10:09:36Z")

</div>

In the meantime, I did a little custom plugin with csound and cabbage, which does what I wanted. I haven’t used it “properly” with Mid-Side recordings just as an effect to normal stereo-recordings. The result is probably pretty similar by automating said parameters though.

---

<div class="post-metadata">

**Author:** ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)\
**Post date:** [January 12, 2022, 10:12am UTC](https://qa.fmod.com/t/mid-side-processing/15426/7 "2022-01-12T10:12:34Z")

</div>

I’m trying to m/s processing with stereo files. It would be great if I could only pan the mid part and leave the side 2d.

---

<div class="post-metadata">

**Author:** ![Capraise](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@Capraise](https://qa.fmod.com/u/Capraise)\
**Post date:** [January 12, 2022, 5:30pm UTC](https://qa.fmod.com/t/mid-side-processing/15426/8 "2022-01-12T17:30:18Z")

</div>

Yes, that would work with the approach. It just can create potential problems. When working with Unity and Windows there was no problem. I was using [Cabbage](https://cabbageaudio.com) if you want to dive into that rabbit hole ^^. I could help further if you’re getting stuck, but I also don’t know anything.  
This was the code I was using.

```auto
a1 inch 1
a2 inch 2

amid = a1 + a2
aside = a1 - a2

amid2 = amid*kMidGain
aside2 = aside*kSideGain

aleft = amid2 + aside2
aright = amid2 + (aside2 * -1)

```

---

<div class="post-metadata">

**Author:** ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)\
**Post date:** [November 28, 2023, 2:18pm UTC](https://qa.fmod.com/t/mid-side-processing/15426/9 "2023-11-28T14:18:07Z")

</div>

Did you manage to compile a midside panner for fmod with cabbage?

---

<div class="post-metadata">

**Author:** ![Capraise](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@Capraise](https://qa.fmod.com/u/Capraise)\
**Post date:** [November 28, 2023, 3:01pm UTC](https://qa.fmod.com/t/mid-side-processing/15426/10 "2023-11-28T15:01:14Z")

</div>

Yes, but I ended up writing my own mid-side plugin, as porting to different platforms is pretty painful. But cabbage worked perfectly fine for windows.  
It’s not a midside panner though just mid and side gain. But the panning would be no problem to do in fmod.  
If you have any questions, feel free to write.

---

<div class="post-metadata">

**Author:** ![Capraise](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@Capraise](https://qa.fmod.com/u/Capraise)\
**Post date:** [November 28, 2023, 5:40pm UTC](https://qa.fmod.com/t/mid-side-processing/15426/11 "2023-11-28T17:40:31Z")

</div>

I just realised, that I forgot to correct here to halve the signal left and right at the end.  
For any potential future viewers, that think, that something doesn’t add up ^^

---

<div class="post-metadata">

**Author:** ![ssass2](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/ssass2/32/6174_2.png) [@ssass2](https://qa.fmod.com/u/ssass2)\
**Post date:** [February 12, 2024, 1:46pm UTC](https://qa.fmod.com/t/mid-side-processing/15426/12 "2024-02-12T13:46:57Z")

</div>

Hi Capraise, 2 years ago you asked about Distance Filter for Android . do you have found solution? i have ready android project and stuck on this (very stupid) problem . i cant find Distance Filter for android- nowhere . and i have 0 experience in compiling and sdk stuff ,Could you please help.

---

<div class="post-metadata">

**Author:** ![Capraise](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@Capraise](https://qa.fmod.com/u/Capraise)\
**Post date:** [February 24, 2024, 10:16pm UTC](https://qa.fmod.com/t/mid-side-processing/15426/13 "2024-02-24T22:16:33Z")

</div>

I just responded you in private, but forgot, that the Fmod API includes a distance filter in their Plugin examples.  
If you need assistance in compiling that for android, I could help (:
