<div><br></div><div><div><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I&#39;m Trying to do this:<br>
<br>
after recording a sound event in array<br>
(the initial size of this array is equal to samplerate*time in seconds),<br>
<br>
I want to resize this array approximately equal of the duration of this<br>
sound event (as a sttacato event with fff in trumpet).<br>
<br>
In other words,<br>
I want to detect in a array with size X, a lot of amount of samples with<br>
values approximately zero, this amount with size Y (where Y is 0&lt;Y&lt;X) ,<br>
and resize this array with new size X-Y<br>
<br>
I&#39;m trying to program it or look on the net for solutions, but without sucess.<br>
<br></blockquote><div><br></div><div>Hi Guilherme, </div>triggering tabwrite~ with bonk~ may help you get rid of silence _before_ the note, <div>after the note I&#39;m not sure...</div><div>Personally I would just leave that. </div>


<div>What&#39;s the reason you want to remove the silence ?</div><div>You could also detect silence on the sound itself with an envelope follower...</div><div>off the top of my head: [abs~]--[lop~ 100]--[expr~ $v1&lt;0.05]--[unsig~]--[change]--[tgl] or something similar ?</div>


<div><div><div><div>gr,</div><div>Tim</div></div></div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
anyone have any idea how to do this?<br>
<br>
Best<br>
<br>
Guilherme<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br></div></div></div></div>