pl-nk v0.4.5
Plonk|Plink|Plank are a set of cross-platform C/C++ frameworks for audio software development
Functions
Unary arithmetic operator functions
Other Plonk user functions

Unary arithmetic operator functions. More...

Functions

template<class Type >
Type abs (Type const &a) throw ()
 Returns the absolute of the input argument.
template<class Type >
Type move (Type const &a) throw ()
 Just returns the input argument.
template<class Type >
Type inc (Type const &a) throw ()
 Increment by 1.
template<class Type >
Type dec (Type const &a) throw ()
 Decrement by 1.
template<class Type >
Type log2 (Type const &a) throw ()
 Returns the logarithm base 2 of the input argument.
template<class Type >
Type neg (Type const &a) throw ()
 Returns the negative of the input argument.
template<class Type >
Type reciprocal (Type const &a) throw ()
 Returns the reciprocal of the input argument (i.e, $ \frac{1}{a} $).
template<class Type >
Type sin (Type const &a) throw ()
 Returns the sine of the input argument.
template<class Type >
Type cos (Type const &a) throw ()
 Returns the cosine of the input argument.
template<class Type >
Type tan (Type const &a) throw ()
 Returns the tangent of the input argument.
template<class Type >
Type asin (Type const &a) throw ()
 Returns the arcsine of the input argument.
template<class Type >
Type acos (Type const &a) throw ()
 Returns the arcosine of the input argument.
template<class Type >
Type atan (Type const &a) throw ()
 Returns the arctangent of the input argument.
template<class Type >
Type sinh (Type const &a) throw ()
 Returns the hyperbolic sine of the input argument.
template<class Type >
Type cosh (Type const &a) throw ()
 Returns the hyperbolic cosine of the input argument.
template<class Type >
Type tanh (Type const &a) throw ()
 Returns the hyperbolic tangent of the input argument.
template<class Type >
Type sqrt (Type const &a) throw ()
 Returns the square root of the input argument.
template<class Type >
Type log (Type const &a) throw ()
 Returns the natural logarithm of the input argument.
template<class Type >
Type log10 (Type const &a) throw ()
 Returns the logarithm base 10 of the input argument.
template<class Type >
Type exp (Type const &a) throw ()
 Returns the exponent of the input argument.
template<class Type >
Type ceil (Type const &a) throw ()
 Returns the input argument rounded up to the next highest integer.
template<class Type >
Type floor (Type const &a) throw ()
 Returns the input argument rounded down to the next lowest integer.
template<class Type >
Type frac (Type const &a) throw ()
 Returns the fractional part of the input argument.
template<class Type >
Type sign (Type const &a) throw ()
 Returns 0 if the input is 0, -1 if the input is negative or 1 if the input argument is positive.
template<class Type >
Type m2f (Type const &a) throw ()
 Returns the input argument converted from MIDI note numbers to frequency (in Hz).
template<class Type >
Type f2m (Type const &a) throw ()
 Returns the input argument converted from frequency (in Hz) to MIDI note numbers.
template<class Type >
Type a2dB (Type const &amp) throw ()
 Returns the input argument converted from linear amplitude to decibels where 0dB is an amplitude of 1.
template<class Type >
Type dB2a (Type const &db) throw ()
 Returns the input argument converted from decibels to linear amplitude where 0dB is an amplitude of 1.
template<class Type >
Type d2r (Type const &deg) throw ()
 Returns the input argument converted from degrees to radians.
template<class Type >
Type r2d (Type const &deg) throw ()
 Returns the input argument converted from radians to degrees.
template<class Type >
Type distort (Type const &a) throw ()
 Returns the input argument distorted.
template<class Type >
Type zap (Type const &x) throw ()
 Returns the input argument with infinities, NaNs and denormallised numbers removed.

Detailed Description

Unary arithmetic operator functions.


Function Documentation

template<class Type >
Type a2dB ( Type const &  amp) throw () [inline]

Returns the input argument converted from linear amplitude to decibels where 0dB is an amplitude of 1.

template<class Type >
Type acos ( Type const &  a) throw () [inline]

Returns the arcosine of the input argument.

template<class Type >
Type asin ( Type const &  a) throw () [inline]

Returns the arcsine of the input argument.

template<class Type >
Type atan ( Type const &  a) throw () [inline]

Returns the arctangent of the input argument.

template<class Type >
Type ceil ( Type const &  a) throw () [inline]

Returns the input argument rounded up to the next highest integer.

template<class Type >
Type cos ( Type const &  a) throw () [inline]

Returns the cosine of the input argument.

template<class Type >
Type cosh ( Type const &  a) throw () [inline]

Returns the hyperbolic cosine of the input argument.

template<class Type >
Type d2r ( Type const &  deg) throw () [inline]

Returns the input argument converted from degrees to radians.

template<class Type >
Type dB2a ( Type const &  db) throw () [inline]

Returns the input argument converted from decibels to linear amplitude where 0dB is an amplitude of 1.

template<class Type >
Type dec ( Type const &  a) throw () [inline]

Decrement by 1.

template<class Type >
Type distort ( Type const &  a) throw () [inline]

Returns the input argument distorted.

template<class Type >
Type exp ( Type const &  a) throw () [inline]

Returns the exponent of the input argument.

template<class Type >
Type f2m ( Type const &  a) throw () [inline]

Returns the input argument converted from frequency (in Hz) to MIDI note numbers.

template<class Type >
Type floor ( Type const &  a) throw () [inline]

Returns the input argument rounded down to the next lowest integer.

template<class Type >
Type frac ( Type const &  a) throw () [inline]

Returns the fractional part of the input argument.

template<class Type >
Type inc ( Type const &  a) throw () [inline]

Increment by 1.

template<class Type >
Type log ( Type const &  a) throw () [inline]

Returns the natural logarithm of the input argument.

template<class Type >
Type log10 ( Type const &  a) throw () [inline]

Returns the logarithm base 10 of the input argument.

template<class Type >
Type log2 ( Type const &  a) throw () [inline]

Returns the logarithm base 2 of the input argument.

template<class Type >
Type m2f ( Type const &  a) throw () [inline]

Returns the input argument converted from MIDI note numbers to frequency (in Hz).

template<class Type >
Type move ( Type const &  a) throw () [inline]

Just returns the input argument.

template<class Type >
Type neg ( Type const &  a) throw () [inline]

Returns the negative of the input argument.

template<class Type >
Type r2d ( Type const &  deg) throw () [inline]

Returns the input argument converted from radians to degrees.

template<class Type >
Type reciprocal ( Type const &  a) throw () [inline]

Returns the reciprocal of the input argument (i.e, $ \frac{1}{a} $).

template<class Type >
Type sign ( Type const &  a) throw () [inline]

Returns 0 if the input is 0, -1 if the input is negative or 1 if the input argument is positive.

template<class Type >
Type sin ( Type const &  a) throw () [inline]

Returns the sine of the input argument.

template<class Type >
Type sinh ( Type const &  a) throw () [inline]

Returns the hyperbolic sine of the input argument.

template<class Type >
Type sqrt ( Type const &  a) throw () [inline]

Returns the square root of the input argument.

template<class Type >
Type tan ( Type const &  a) throw () [inline]

Returns the tangent of the input argument.

template<class Type >
Type tanh ( Type const &  a) throw () [inline]

Returns the hyperbolic tangent of the input argument.

template<class Type >
Type zap ( Type const &  x) throw () [inline]

Returns the input argument with infinities, NaNs and denormallised numbers removed.

from music-dsp list

 All Classes Functions Typedefs Enumerations Enumerator Properties