QUICK-REF - CsoundManual - Top of this section - Previous - Contents - Index - Next 

dam

  aout  dam      ain, kthreshold, icomp1, icomp2, rtime, ftime

DESCRIPTION

This opcode dynamically modifies a gain value applied to the input sound 'ain' by comparing its power level to a given threshold level. The signal will be compressed/expanded with different factors regarding that it is over or under the threshold.

INITIALIZATION

icomp1 - Compression ratio for upper zone.
icomp2 - Compression ratio for lower zone.
rtime -  Gain raise time. Time over which the gain factor is allowed to raise of one unit.
ftime - Gain fall time. Time over which the gain factor is allowed to decrease of ine unit.

PERFORMANCE

aout: Output sound stream ain : Input sound stream
kthreshold: Sound level acting as a threshold. Can be changed at ktime (e.g. for ducking)

Note on the compression factors: A compression ratio of one leaves the sound unchanged. Setting the ratio to a value smaller than one will compress the signal (reduce its volume) while setting the ratio to a value greater than one will expand the signal (augment its volume).
 

AUTHOR:

Marc Resibois
Belgium
1997

QUICK-REF - CsoundManual - Top of this section - Previous - Contents - Index - Next 

HTML Csound Manual - © Jean Piché & Peter J. Nix, 1994-97