| Pedro Batista wrote:
> Ola everyone
>
> Is there a way to simulate distortion using csound? My knowledge on the
> innings of distortion are very limited, but I believe it comes from boosting
> a signals level until it clips. The cliping would have to be forced with
> csound, by perhaps something like this:
> asig = (asig > ithreshold ? ithreshold : asig)
> Can someone be so kind as to explain the basic method, if any, for
> achieving that with csound?
> Thanks in advance as always
> pedro
One way to do a "digital clip" is with waveshaping...use a shaping function
that looks something
like:
_
_/
or better yet, gereate a function like that, then filter it to 1/4-1/3 nyquist
frequency (much nicer sound)..I'm sure there are better distortion algorithms,
this is just off the top of my head.
CharlieB
--
*********************************************
Charlie Baker baker@charlieb.com
"when everything isn't roses, you don't get
any headroom" - Thomas Dolby "New Toy"
*********************************************
|