amplitude wrap around

To: cmdist bil
Mon, 24 Nov 97 06:00:28 PST


I thought at one time of clipping at 1.0 (or 1.0-epsilon)
rather than just letting it wrap-around to -1.0, but decided
against it; first you can use scaled-to or min/max in the run loop
as Anders suggests, second the clipping is still a click
or pop that shouldn't be there, and with older ears might
go unnoticed until a concert where half the audience will
wince at something the poor old composer can't hear.  It's
much harder to miss wrap-around; and third, the difference
between .99 (or .999) and 1.0 is inaudible in any normal
context -- you're not losing "dynamic range".

(I have several CD's that clip badly but apparently the
recording engineers couldn't hear it).

But, if you want to clip, the simplest thing would be to
use (outa i (max -1.0 (min .9999 val))) in your instrument.