<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Detecting first non silent sample index [COMPLETED]]]></title><description><![CDATA[<p>Hi,</p>
<p>I have an audio file that I read with [tabread~]). The audio starts with some silence and I am trying to find the first non silent sample index.</p>
<p>I have tried to use [bonk~], [fiddle~] or [sigmund~] but the results were approximate and not constants.</p>
<p>Does anyone have a solution for this? Thanks.</p>
<p>Pascal</p>
<p><img src="/uploads/files/1469190865208-pdsi.jpg" alt="pdsi.jpg" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 07:29:16 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/10227.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Jul 2016 12:34:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Detecting first non silent sample index [COMPLETED] on Sat, 23 Jul 2016 15:29:36 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>I have an audio file that I read with [tabread~]). The audio starts with some silence and I am trying to find the first non silent sample index.</p>
<p>I have tried to use [bonk~], [fiddle~] or [sigmund~] but the results were approximate and not constants.</p>
<p>Does anyone have a solution for this? Thanks.</p>
<p>Pascal</p>
<p><img src="/uploads/files/1469190865208-pdsi.jpg" alt="pdsi.jpg" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed</guid><dc:creator><![CDATA[pascal2000]]></dc:creator><pubDate>Sat, 23 Jul 2016 15:29:36 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting first non silent sample index [COMPLETED] on Fri, 22 Jul 2016 14:02:32 GMT]]></title><description><![CDATA[<p>Is the sound completely silent up to that point (that is, is the table filled with zeroes up to that point)? Because if it is, I believe you can simply go through the array's elements, starting at the first one, checking if the absolute value of any of them is larger than zero. If the signal is not completely silent but near silent, then you will need some sort of attack detection such as <strong>[bonk~]</strong>. Why isn't it working for you, by the way?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed/2</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Fri, 22 Jul 2016 14:02:32 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting first non silent sample index [COMPLETED] on Fri, 22 Jul 2016 14:10:18 GMT]]></title><description><![CDATA[<p>Thanks for the suggestion. Reading the table of course! I'll try that right now.<br />
I had a solution with Bonk~but I found that the result was not precise enough.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed/3</guid><dc:creator><![CDATA[pascal2000]]></dc:creator><pubDate>Fri, 22 Jul 2016 14:10:18 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting first non silent sample index [COMPLETED] on Fri, 22 Jul 2016 17:21:32 GMT]]></title><description><![CDATA[<p>So I am reading my array until there is a non-zero value. It is working although silence is not necessarily a pure 0 value. I had to set a a low value threshold (positive and negative) . So far it is working ;^)</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed/4</guid><dc:creator><![CDATA[pascal2000]]></dc:creator><pubDate>Fri, 22 Jul 2016 17:21:32 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting first non silent sample index [COMPLETED] on Fri, 22 Jul 2016 18:10:45 GMT]]></title><description><![CDATA[<blockquote>
<p>It is working although silence is not necessarily a pure 0 value.</p>
</blockquote>
<p>Yeah, I tried the same thing here and got the same results, I wonder what's the explanation. I simply inserted some pure silence there using Audacity, but I do get values in a quite small order of magnitude. So to detect them, instead of using...:</p>
<pre><code>...
|
[tabread array1]
|
{abs]
|
[&gt; 0]
|
[sel 1]
|
...
</code></pre>
<p>...I had to use:</p>
<pre><code>...
|
[tabread array1]
|
{abs]
|
[&gt; 0.001]
|
[sel 1]
|
...
</code></pre>
<p>Cheers!<br />
Gilberto</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed/5</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Fri, 22 Jul 2016 18:10:45 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting first non silent sample index [COMPLETED] on Sat, 23 Jul 2016 15:28:05 GMT]]></title><description><![CDATA[<p>Thanks Gilberto. Following the same technic than yours, it is working. Great!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed/6</guid><dc:creator><![CDATA[pascal2000]]></dc:creator><pubDate>Sat, 23 Jul 2016 15:28:05 GMT</pubDate></item><item><title><![CDATA[Reply to Detecting first non silent sample index [COMPLETED] on Sat, 23 Jul 2016 16:09:36 GMT]]></title><description><![CDATA[<p>My pleasure!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10227/detecting-first-non-silent-sample-index-completed/7</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Sat, 23 Jul 2016 16:09:36 GMT</pubDate></item></channel></rss>