# Calculation global ratio of high level over silence moments in a buffer?

**URL:** <https://discourse.flucoma.org/t/calculation-global-ratio-of-high-level-over-silence-moments-in-a-buffer/1910>\
**Category:** Usage Questions\
**Created:** [May 12, 2023, 10:48am UTC](https://discourse.flucoma.org/t/calculation-global-ratio-of-high-level-over-silence-moments-in-a-buffer/1910 "2023-05-12T10:48:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JulienBayle](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/julienbayle/32/2071_2.png) [@JulienBayle](https://discourse.flucoma.org/u/JulienBayle)\
**Post date:** [May 12, 2023, 10:48am UTC](https://discourse.flucoma.org/t/calculation-global-ratio-of-high-level-over-silence-moments-in-a-buffer/1910/1 "2023-05-12T10:48:34Z")

</div>

Hi there,

I’m trying to find a way to analyze a buffer in many ways.  
One of them would be : the ratio between moments when the sounds level is under a threshold… and when the sound level in over this one.

For getting a sense of sound/silence ratio.  
Could even use two thresholds. “Silence like” would be if level is lower than thresh 1, and “Sound” would be if level is greater than a thresh 2.

If that’s sound/silence ratio, 1 would me ALMOST NO SILENCE, and 0 would mean a lot of silences.

Would someone help me here ?

I start to be familiar with fluid.bufloudness and how to pipe analysis next to it but I’d still need an hand 🙂

---

<div class="post-metadata">

**Author:** ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Post date:** [May 26, 2023, 8:38pm UTC](https://discourse.flucoma.org/t/calculation-global-ratio-of-high-level-over-silence-moments-in-a-buffer/1910/2 "2023-05-26T20:38:34Z")

</div>

this is similar to this question, no? [Trying to extract the ratio of moments of silence vs sound in a recording - #2 by tremblap](https://discourse.flucoma.org/t/trying-to-extract-the-ratio-of-moments-of-silence-vs-sound-in-a-recording/1927/2)

---

<div class="post-metadata">

**Author:** ![JulienBayle](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/julienbayle/32/2071_2.png) [@JulienBayle](https://discourse.flucoma.org/u/JulienBayle)\
**Post date:** [May 26, 2023, 8:40pm UTC](https://discourse.flucoma.org/t/calculation-global-ratio-of-high-level-over-silence-moments-in-a-buffer/1910/3 "2023-05-26T20:40:11Z")

</div>

(I’m very sorry, total full double yes)  
(maybe we can delete this one)

---

<div class="post-metadata">

**Author:** ![tremblap](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/tremblap/32/5_2.png) [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Post date:** [May 27, 2023, 9:15am UTC](https://discourse.flucoma.org/t/calculation-global-ratio-of-high-level-over-silence-moments-in-a-buffer/1910/4 "2023-05-27T09:15:02Z")

</div>

nah let’s keep it - they are bound in love forever 😉
