[chuck-users] Beginner question about audio artifacts

chriswicks crwicks at yahoo.com
Sat Apr 14 21:06:40 EDT 2012


Thanks, that seems to work for 2 shreds, but adding any more continues to give me the dreaded clipping artifacts.  Any advice here?  My current project will be using at least 5 shreds, probably more.



________________________________
 From: Lucas Zawacki <lfzawacki at gmail.com>
To: ChucK Users Mailing List <chuck-users at lists.cs.princeton.edu> 
Sent: Saturday, April 14, 2012 8:26 PM
Subject: Re: [chuck-users] Beginner question about audio artifacts
 
Just a guess, but if you are outputing signal to the dac in more than
one shred you'll have to normalize output gain - otherwise the sound
will clip.

Compare how these two examples sound, (use two shreds doing the same
of each example):

// example 1
SinOsc s => dac;
440 => s.freq;
2::second => now;

// example 2
SinOsc s => dac;
0.5 => s.gain; // normalize gain
440 => s.freq;
2::second => now;

Hope to have helped.
_______________________________________________
chuck-users mailing list
chuck-users at lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20120414/146c0c4b/attachment.htm>


More information about the chuck-users mailing list