dbfsampMathematical Operations:Amplitude Functionsdbfsampdbfsamp
Returns the decibel equivalent of the raw amplitude x, relative to full scale amplitude.
Description
Returns the decibel equivalent of the raw amplitude x, relative to full scale amplitude. Full scale is assumed to be 16 bit. New is Csound version 4.10.
Syntaxdbfsamp(x) (init-rate or control-rate args only)Examples
Here is an example of the dbfsamp opcode. It uses the file dbfsamp.csd.
Example of the dbfsamp opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
Its output should include lines like this:
instr 1: idb = -90.309
instr 1: idb = -50.309
instr 1: idb = -30.309
instr 1: idb = -10.309
instr 1: idb = -0.767See alsoAmplitude Converters