Klang C++
Language Reference (draft)
|
Constant scalar (pre-converted to double, float and int). More...
#include <klang.h>
Public Member Functions | |
constexpr | constant (double value) noexcept |
Create a constant from the given value. | |
constexpr | operator float () const noexcept |
float | operator^ (float x) const |
Constant raised to the power, x. | |
float | operator^ (int x) const |
float | operator^ (double x) const |
Public Attributes | |
const double | d |
Constant as double. | |
const float | f |
Constant as float. | |
const int | i |
Constant as integer. | |
const float | inv |
Inverse of constant. | |
|
inlineconstexprnoexcept |
Definition at line 91 of file klang.h.
Referenced by klang::Filters::Biquad::APF::init(), klang::Filters::Biquad::BRF::init(), klang::Filters::Biquad::HPF::init(), klang::Filters::Biquad::LPF::init(), klang::Filters::Butterworth::LPF::init(), klang::Filters::Biquad::BPF::init_peak(), and klang::Filters::Biquad::BPF::init_skirt().
|
inlineconstexprnoexcept |
|
inline |
|
inline |
|
inline |
const double klang::constant::d |
Definition at line 94 of file klang.h.
Referenced by constant(), operator^(), and operator^().
const float klang::constant::f |
Definition at line 95 of file klang.h.
Referenced by constant(), klang::param::param(), klang::signal::signal(), operator float(), operator^(), and klang::Generic::Oscillator< SIGNAL >::set().
const int klang::constant::i |
Definition at line 96 of file klang.h.
Referenced by constant().
const float klang::constant::inv |
Definition at line 97 of file klang.h.
Referenced by constant(), klang::Filters::Biquad::APF::init(), klang::Filters::Biquad::BRF::init(), klang::Filters::Biquad::HPF::init(), klang::Filters::Biquad::LPF::init(), klang::Filters::Butterworth::LPF::init(), klang::Filters::Biquad::BPF::init_peak(), klang::Filters::Biquad::BPF::init_skirt(), klang::Generators::Basic::Saw::process(), and klang::Generators::Basic::Triangle::process().