[racket] sound + universe report: success.

From: Stephen Bloch (bloch at adelphi.edu)
Date: Thu Oct 20 16:48:41 EDT 2011

One of the reasons that overlapping sounds tends to be unpleasant is that most sound drivers take amplitude input in the range [-1,1].  If you simply add two sounds that are each in this range, the resulting sound will occasionally have an amplitude outside the range.  The simple (and common) solution to this is to "clip" the amplitude to that range, which sounds really nasty.

Another solution is to average the old sound with the new sound, which doesn't cause clipping but makes overlapping two sounds a non-associative operation.

Stephen Bloch
sbloch at adelphi.edu

Posted on the users mailing list.