Csound Csound-dev Csound-tekno Search About

overall score volume problem

Date1998-01-30 11:44
FromDavid Schuyeteneer
Subjectoverall score volume problem
How can I let Csound calculate to overall volume of it's SCORE in order to
avoid unwanted distortion ?
The problem arised when I tried 10 instances of the same instrument (
WGBOW) all starting
at the same time. Because they perform all at the same time, the volume is
too high.....
I don't how to solve this because it is a SCORE init time problem. Each
instrument instance should
be given automaticly a score amplification value (p4) based on how much
instances there are and the amount 
of synchronicity (overlapping).....any suggestions ??


David.

p.s. Csound really starts to get hot now, certainly due to Maldonado's
REALTIME modifications....
In march I have to do a party (techno/ambient), I guess I'll be the first
DJ that uses Csound and granular 
synthesis at an underground party ! ;-))  Finally the academic audio
experiments have found their 
way to a somewhat larger audience. ;-)








Date1998-01-30 14:22
FromMatt
SubjectRe: overall score volume problem
On Fri, 30 Jan 1998, David Schuyeteneer wrote:

> How can I let Csound calculate to overall volume of it's SCORE in order to
> avoid unwanted distortion ?

My cheap and easy solution is that I use a table lookup function on the
audio output.  It looks like a compressor in that it is a 1to1 mapping up
to a certain point and then it curves, tending towards a gradient of zero. 
This will scale down any samples that are not TOO huge but will,
obviously, distort them.  The distortion is a LOT more pleasant than
digital clipping and I quite like it.  I've started using it in all my
csound stuff as it means I never have to worry about clipping.  I can
scale the volumes and remove it later if I want a perfectly clean signal. 

> In march I have to do a party (techno/ambient), I guess I'll be the first
> DJ that uses Csound and granular synthesis at an underground party ! ;-))  

Dunno about that :)

Matt