Thank you for purchasing
Programming for Musicians and Digital Artists:
Creating music with ChucK. Please post any errors, other than those listed below, in the book's
Author Online Forum. We'll compile a comprehensive list and publish it here for everyone's convenience. Thank you!
Last updated March 16, 2015
-
Listing 1.8
1 *=> myPitch;
This should be 2 *=> myPitch;
-
Try This (after Listing 1.12)
Should say "try more random running triangle programs"
rather than "sine programs."
Also, if you run multiples, you might want to set the gain
of the TriOsc t to something less than 1.0, adding a line like:
0.2 => t.gain;
so that the mixture of multiple shreds
doesn't overload the output.
-
Listing(s) 8.9 (and 8.5-8.8): Jazz Band
Distortion (Windoze/Linux)
Some have experienced distortion on the Jazz Band example,
and also on the "Try This" after Listing 1.12 (see above).
This can happen on Windows and Linux machines (but not on Macs)
because of the way the audio subsystems work. The solution
is to decrease the gain on all of the instruments. For example:
Listing 8.5 Jazz band: piano.ck
Add lines such as:
0.3 => piano[0].gain;
0.3 => piano[1].gain;
0.3 => piano[2].gain;
0.3 => piano[3].gain;
and modify existing gain settings on other instruments, such as:
Listing 8.6 Jazz band: bass.ck
change .5 => bass.gain;
to 0.3 => bass.gain;
until distortion goes away.