Mathematical Functions: Amplitude Functions

## dbamp, ampdb, dbfsamp, ampdbfs

**dbamp**(x) (init-rate or control-rate args only)
**ampdb**(x) (no rate restriction)
**dbfsamp**(x) (init-rate or control-rate args only)
**ampdbfs**(x) (no rate restriction)

### Description

Where the argument within the parentheses may be an expression. These functions perform conversions between raw amplitude values and their decibel equivelents. The result can then be a term in a further expression.

**dbamp**(*x*) – returns the decibel equivalent of the raw amplitude *x*.

**ampdb**(*x*) – returns the amplitude equivalent of the decibel value *x*. Thus:

- 60 dB = 1000
- 66 dB = 1995.262
- 72 dB = 3891.07
- 78 dB = 7943.279
- 84 dB = 15848.926
- 90 dB = 31622.764

**dbfsamp**(*x*) – returns the decibel equivalent, relative to full scale amplitude, of the raw amplitude *x*. Full scale is assumed to be 16 bit. New is Csound Version 4.16.

**ampdbfs**(*x*) – returns the amplitude equivalent of the decibel value *x*, which is relative to full scale amplitude. Full scale is assumed to be 16 bit. New is Csound Version 4.16.

Mathematical Functions: Amplitude Functions