Use Non-Frames Version Previous Page Next Page
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:

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.


Use Non-Frames Version Previous Page Next Page
Mathematical Functions: Amplitude Functions