<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>The way to deal with this in real-time is to fade in for a short period at the start, and fade out at the end. In order for that to respond in real time, I've found a good way is to delay the audio stream by a tiny value (e.g. 5ms) then fade the audio at 5ms - 1 audio block (about 1.46ms). That way, when you hit "stop" on the sample playback object (e.g. tabread4~ or xgroove~) the audio stops, but the 5ms delay means that the fadeout starting at that moment will happen before the audio you hear stops (because it is delayed by 5ms).</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0,
 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>I hope that makes sense. Patch enclosed!</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Ed</span></div><div></div><div>&nbsp;</div><div>Ninja Jamm - a revolutionary new music remix app from Ninja Tune and Seeper, for iPhone and iPad<br>http://www.ninjajamm.com/</div><div><br><br></div><div>Gemnotes-0.2: Live music notation for Pure Data, now with dynamics!<br>http://sharktracks.co.uk/&nbsp;</div><div class="yahoo_quoted" style="display: block;"> <br> <br> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue,
 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Wednesday, 26 March 2014, 21:52, "puredata@11h11.com" &lt;puredata@11h11.com&gt; wrote:<br> </font> </div> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div class="y_msg_container">Hi everyone,<br><br>I'm struggling at making my own loop station solution inside pd. I'm&nbsp; <br>trying to mimic SooperLooper, that is:<br><br>- multiple sync options<br>- multiple quantize options<br>+ something i am not sure SooperLooper do: cross-fading begin/end of&nbsp; <br>loop to avoid glitches.<br><br>I have code a patch, but it is very messy (1 abstraction for master, x&nbsp; <br>abstractions for slaves). I am using xrecord &amp; xgroove (for&nbsp; <br>crossing-fading start / end). The patch is kind of working but I am&nbsp; <br>getting glitches when starting and
 stopping the recording (I think it&nbsp; <br>was okay when using a bigger jack buffer - (I am now at 64...)).<br><br>Thanks!<br><br><br>_______________________________________________<br><a ymailto="mailto:Pd-list@iem.at" href="mailto:Pd-list@iem.at">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><br><br></div> </blockquote>  </div> </div>   </div> </div></body></html>