Klang C++
Language Reference (draft)
|
#include <klang.h>
Public Member Functions | |
void | operator+= (const Control &control) |
void | operator= (const Controls &controls) |
void | operator= (std::initializer_list< Control > controls) |
void | add (const char *name, Control::Type type=Control::ROTARY, float min=0.f, float max=1.f, float initial=0.f, Control::Size size=Automatic) |
bool | changed () |
unsigned int | size () const |
The current number of items in the array. | |
void | add (const Control &item) |
Add the specified item to the end of the array. | |
Control * | add () |
Add a blank item to the end of the array, returning a pointer that allows the item to be modified. | |
void | clear () |
Clear the array contents. Only resets the item count, without wiping memory. | |
float | max () const |
Find the maximum value in the array. | |
float | mean () const |
Find the mean average of values in the array. | |
float | rms () const |
Find the root mean squared (RMS) average of values in the array. | |
void | normalise (float target=1.f, int mode=Peak) |
Normalises values in the array to the specified target, based on peak, mean, or RMS value;. | |
Control & | operator[] (int index) |
Returns a reference to the array item at the given index. | |
const Control & | operator[] (int index) const |
Returns a read-only reference to the array item at the given index. | |
Static Public Member Functions | |
static int | capacity () |
The maximum capacity of the array. | |
Public Attributes | |
float | value [128] = { 0 } |
Control | items [CAPACITY] |
unsigned int | count |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 1113 of file klang.h.
References klang::Control::initial, klang::Control::max, klang::Control::min, klang::Control::name, klang::Text< SIZE >::operator=(), klang::Control::size, klang::Control::type, and klang::Control::value.
|
inlinestaticinherited |
|
inline |
Definition at line 1123 of file klang.h.
References klang::Control::value, and value.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 1099 of file klang.h.
Referenced by operator=(), and operator=().
|
inline |
Definition at line 1103 of file klang.h.
References klang::Control::NONE, operator+=(), klang::Array< TYPE, CAPACITY >::operator[](), and klang::Control::type.
|
inline |
Definition at line 1108 of file klang.h.
References operator+=().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |