<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Hey Tim!</div></blockquote><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>What's the best way to prevent samples from clipping in chuck?  My problem is that my bass samples are too long for the time advanced, which creates a rythmic popping sound.  Any advice would be appreciated.  Thank you, </div>

<div><br></div></blockquote><div><br></div><div>It sounds a bit to me like you don't mean literal "clipping" (or excess volume) but the kind of clicking sound (that can be quite similar) you get as a wave form suddenly changes value, in this case to 0. Correct me if I'm wrong.</div>
<div><br></div><div>Now, assuming we're now on the same page, the most convenient way here is a short fade-out; Envelope or ADSR will help you do that, or you could try playing them back using LiSa which has a "rampDown" function build in. This might mean that if you were previously advancing time by X you may now need to use X - Y, where Y is the duration of the fade. This would be followed by starting the fade, then advancing time by Y. If all you need is click-removal a very short fade of 10 or so ms should do the trick, the length of the fade that sounds best will probably depend on your material, with material that contains prominent low frequencies requiring slightly longer fades.</div>
<div>Depending on your needs and code there might be other or related clever tricks you can also use to avoid these clicks, that's a bit hard to give comments on from here.</div><div><br></div><div>Hope that helps,</div>
<div>Kas.</div></div>