[chuck-users] Beginner question about audio artifacts

Lucas Zawacki lfzawacki at gmail.com
Sat Apr 14 20:26:11 EDT 2012


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.


More information about the chuck-users mailing list