# CLASH\_THRESHOLD\_G setting not "working"

**URL:** <https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883>\
**Category:** ProffieOS\
**Created:** [February 16, 2024, 5:07pm UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883 "2024-02-16T17:07:53Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [February 20, 2024, 4:56am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/22 "2024-02-20T04:56:41Z")

</div>

What if you add

```cpp
#define AUDIO_CLASH_SUPPRESSION_LEVEL 1

```

The default is 10, which is fairly low, but even a low audio clash suppression level could be significant compared to a clash threshold of 0.5.

---

<div class="post-metadata">

**Author:** ![KalCestis](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/kalcestis/32/4476_2.png) [@KalCestis](https://crucible.hubbe.net/u/KalCestis)\
**Post date:** [February 20, 2024, 5:26am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/23 "2024-02-20T05:26:06Z")

</div>

I’ll try 1, 10, 20, 50.

On a separate note, do you think I should try rolling back to ProffieOS 6.9?

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [February 20, 2024, 7:04am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/24 "2024-02-20T07:04:17Z")

</div>

> [@KalCestis](#):
>
> On a separate note, do you think I should try rolling back to ProffieOS 6.9?

Not really, but it can be interesting to compare.

---

<div class="post-metadata">

**Author:** ![KalCestis](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/kalcestis/32/4476_2.png) [@KalCestis](https://crucible.hubbe.net/u/KalCestis)\
**Post date:** [February 20, 2024, 7:19am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/25 "2024-02-20T07:19:07Z")

</div>

> [@profezzorn](#):
>
> What if you add
> 
> ```auto
> #define AUDIO_CLASH_SUPPRESSION_LEVEL 1
> 
> ```

That worked! CLASH\_THRESHOLD\_G 0.5 and AUDIO\_CLASH\_SUPPRESSION\_LEVEL 1 is just right.

Thanks so much. What do you think the issue is? I’ve tried lowering the volume to min, thinking it was speaker interference and that didn’t fix it.

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [February 20, 2024, 7:28am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/26 "2024-02-20T07:28:15Z")

</div>

Ok, so there are multiple things going on here.

1. AUDIO\_CLASH\_SUPPRESSION\_LEVEL uses the volume level calculated by the dynamic compressor. However, this happens before the final volume adjustment, which is probably not how we actually want it to work, because that means that if your volume is low, the adjustment is too high, and if your volume is high, the adjustment is too low.
2. AUDIO\_CLASH\_SUPPRESSION\_LEVEL is independent of CLASH\_THRESHOLD\_G, which is probably also not what we want. The default value ends up increasing CLASH\_THRESHOLD\_G by about 1 when a loud font is playing. For someone who has a CLASH\_TRESHOLD\_G set to 5, changing it to 6 makes a fairly small difference. For someone who has CLASH\_THRESHOLD\_G set to 0.5, it makes a _huge_ difference. AUDIO\_CLASH\_SUPPRESSION\_LEVEL should probably be a multiplier instead.
3. It’s weird and and unusual to set CLASH\_THRESHOLD\_G as low as 0.5. I’m not sure why such a low value works well for you, but doing so is what exposed the problems with the AUDIO\_CLASH\_SUPPRESSION\_LEVEL.

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [May 16, 2024, 3:45am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/27 "2024-05-16T03:45:03Z")

</div>

> [@profezzorn](#):
>
> What if you add
> 
> ```auto
> #define AUDIO_CLASH_SUPPRESSION_LEVEL 1
> 
> ```
> 
> The default is 10, which is fairly low, but even a low audio clash suppression level could be significant compared to a clash threshold of 0.5.

Just had a case of this exact problem (no clashes without smashing something to death even down to CLASH\_THRESHOLD\_G 0.1)  
Didn’t go through serial monitoring troubleshooting steps, just cut to the chase and added the suppression define and it “fixed it”. Then needed to up the threshold to ~2.0 to dial in normal clashing.  
So the question is… why?  
Do the statements above about “probably not how we actually want it to work” mean some code still could use some tweaking?  
This was a v3.9 board btw.

---

<div class="post-metadata">

**Author:** ![A\_Rogue\_Child](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/a_rogue_child/32/4449_2.png) [@A\_Rogue\_Child](https://crucible.hubbe.net/u/A_Rogue_Child)\
**Post date:** [May 16, 2024, 5:06am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/28 "2024-05-16T05:06:39Z")

</div>

FWIW if this helps neither of my V3’s is affected. Running these in defines

```auto
#define VOLUME 2200
#define CLASH_THRESHOLD_G 4
#define AUDIO_CLASH_SUPPRESSION_LEVEL 5

```

Note that aside from my upping the volume w the V3 configs the defines are the same as they are w the kids and my V2 boards.

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [May 16, 2024, 5:11am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/29 "2024-05-16T05:11:19Z")

</div>

but does it NOT work if you comment out the audio suppression define?

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [May 16, 2024, 6:59am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/30 "2024-05-16T06:59:29Z")

</div>

> [@NoSloppy](#):
>
> Do the statements above about “probably not how we actually want it to work” mean some code still could use some tweaking?

At the very least, we should scale AUDIO\_CLASH\_SUPPRESSION\_LEVEL by the clash threshold.

---

<div class="post-metadata">

**Author:** ![A\_Rogue\_Child](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/a_rogue_child/32/4449_2.png) [@A\_Rogue\_Child](https://crucible.hubbe.net/u/A_Rogue_Child)\
**Post date:** [May 17, 2024, 12:12am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/31 "2024-05-17T00:12:38Z")

</div>

@NoSloppy I can certainly put in some time tomorrow or Saturday night and give it a go if you want. The thing is with the PowerCore setup I can’t run the cable to pull Serial Monitor output. I could disable blade detect and just bench test the core with Diagnostic Commands active.

👍

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [May 17, 2024, 12:19am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/32 "2024-05-17T00:19:26Z")

</div>

Don’t need seriall monitor info really. Just curious if you remove that define if clashes become next to impossible.

---

<div class="post-metadata">

**Author:** ![A\_Rogue\_Child](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/a_rogue_child/32/4449_2.png) [@A\_Rogue\_Child](https://crucible.hubbe.net/u/A_Rogue_Child)\
**Post date:** [May 17, 2024, 2:16am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/33 "2024-05-17T02:16:22Z")

</div>

Got ya. I’ll get to testing by Saturday night and post an answer.

---

<div class="post-metadata">

**Author:** ![A\_Rogue\_Child](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/a_rogue_child/32/4449_2.png) [@A\_Rogue\_Child](https://crucible.hubbe.net/u/A_Rogue_Child)\
**Post date:** [May 17, 2024, 7:13pm UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/34 "2024-05-17T19:13:21Z")

</div>

One additional point of clarity so I can test whatever else besides just disabling the suppression define.

What prop(s) are in use when this is being seen? I’m on Fett263’s prop and haven’t seen it but will be testing thru Sunday.

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [May 17, 2024, 8:11pm UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/35 "2024-05-17T20:11:49Z")

</div>

> [@A\_Rogue\_Child](#):
>
> Fett263’

Fett263. But try others too.

---

<div class="post-metadata">

**Author:** ![A\_Rogue\_Child](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/a_rogue_child/32/4449_2.png) [@A\_Rogue\_Child](https://crucible.hubbe.net/u/A_Rogue_Child)\
**Post date:** [May 19, 2024, 2:21am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/36 "2024-05-19T02:21:54Z")

</div>

I’m wrapping up testing three sabers. Two with a V3.9 board and another with a V2.2 board. Not seeing this glitch. Zero issues with Fett263’s or NoSloppy’s props. This is the [CONFIG](https://pastebin.com/nFygE9nP) if anyone wants a look.

Maybe we should be asking what specific boards are showing this as it may well be manufacturer’s component spec affecting things. \*\*JustSaying

MTFBWY!

\*Update: I went ahead and borrowed a couple other V2.2’s and a V3.9, none of them show the glitch.

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [May 19, 2024, 10:11am UTC](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883/37 "2024-05-19T10:11:26Z")

</div>

Ok thanks.

[Previous page](https://crucible.hubbe.net/t/clash-threshold-g-setting-not-working/4883.md?page=1)
