<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Difficult! You can try using zeroxpos~ to find out where the zero-crossings are relative to the pd dsp block start, but you need to know where it is in relation to the start of the array. Perhaps I need to write another external to give a sample accurate "where in the block is the initial bang" reading. Perhaps someone has done it already?<br><br>Then you could use bang~ to count the blocks, zeroxpos~ to measure the offset within a block, and another external to find the inital offset from the start of the block when the recording began.<br><br>But, although zero-crossings will take away non-zero-crossing based clicks, the instantaneous burst of energy caused by a discontinuity in the energy of the sound will still give you an audible "jump" in the sound. Some windowing is your best option,
 probably...<br><br>By the way, adjust your computer clock! Apparently the PD list received your email on the 4th of September 2008! Already...unless you have developed a ~~ object...Jules Verne? Truly Quantum!<br><br>Best,<br>Ed<br><div>&nbsp;</div>Lone Shark "Aviation" out now on http://www.pyramidtransmissions.com<br>http://www.myspace.com/sharktracks<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: David Schaffer &lt;schafferdavid@hotmail.com&gt;<br>To: pd list &lt;pd-list@iem.at&gt;<br>Sent: Thursday, 4 September, 2008 9:47:11 AM<br>Subject: [PD] How do I do this (clean looping)?!<br><br><style></style>  <div><font face="Arial" size="2">Hi, </font></div><div><font face="Arial" size="2"></font>&nbsp;</div><div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; I'm building a little time 
domain abstraction that captures audio from&nbsp;an input and writes it on the 
fly to an array, this array is then beeing red continuously as a loop (as a 
result, the incoming sound seems to "freeze", see what I mean?). my problem is 
avoiding clicks at both ends of the loop; right now, I'm trying to use time 
based triggers to create a "windowing" function so that the amplitude of the 
loop is zero at both ends, butI was wondering if there was a way to tell pd to 
start and stop it's recording process at zero crossing points, or to truncate 
its reading points a bit so that the beginnig and the end of the loop are zero. 
Can anyone help me in this?!</font></div><div>&nbsp;</div><div><font face="Arial" size="2">Thanks a lot!!</font></div><div>&nbsp;</div><div><font face="Arial" size="2">D.S</font></div><div>&nbsp;</div><div>&nbsp;</div><div><font face="Arial" size="2"><a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/schafferdavid/">http://www.flickr.com/photos/schafferdavid/</a><br><a rel="nofollow" target="_blank" href="http://audioblog.arteradio.com/David_Schaffer/">http://audioblog.arteradio.com/David_Schaffer/</a></font></div></div></div></div><br>



      <hr size=1> 
Not happy with your email address?
<br> <a href="http://uk.docs.yahoo.com/ymail/new.html"> Get the one you 

really want</a> - millions of new email addresses available now at <a 

href="http://uk.docs.yahoo.com/ymail/new.html"> Yahoo!</a></body></html>