<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Actually, never mind that last question.  It seems as though the lower the gain, the more shreds I can go without artifacts (although the lower the volume per shred).  Is this more or less on point?  Thanks again!<br></span></div><div><br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Lucas Zawacki <lfzawacki@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, April 14, 2012 8:26 PM<br> <b><span style="font-weight:
 bold;">Subject:</span></b> Re: [chuck-users] Beginner question about audio artifacts<br> </font> </div> <br>
Just a guess, but if you are outputing signal to the dac in more than<br>one shred you'll have to normalize output gain - otherwise the sound<br>will clip.<br><br>Compare how these two examples sound, (use two shreds doing the same<br>of each example):<br><br>// example 1<br>SinOsc s => dac;<br>440 => s.freq;<br>2::second => now;<br><br>// example 2<br>SinOsc s => dac;<br>0.5 => s.gain; // normalize gain<br>440 => s.freq;<br>2::second => now;<br><br>Hope to have helped.<br>_______________________________________________<br>chuck-users mailing list<br><a ymailto="mailto:chuck-users@lists.cs.princeton.edu" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br><br><br> </div> </div>  </div></body></html>