logbtwo
Performs a logarithmic base two calculation.
Syntax
Performance
logbtwo() returns the logarithm base two of x. The range of values admitted as argument is .25 to 4 (i.e. from -2 octave to +2 octave response). This function is the inverse of powoftwo().
These functions are fast, because they read values stored in tables. Also they are very useful when working with tuning ratios. They work at i- and k-rate.
Examples
Here is an example of the logbtwo opcode. It uses the file logbtwo.csd.
Its output should include a line like this:
See also
Credits
Author: Gabriel Maldonado
Italy
June 1998
Author: John ffitch
University of Bath, Codemist, Ltd.
Bath, UK
July 1999
Example written by Kevin Conder.
New in Csound version 3.57