Klang C++
Language Reference (draft)
|
Synthesiser note array. More...
#include <klang.h>
Public Types | |
typedef Array< NOTE *, 128 > | Array |
Public Member Functions | |
Notes (SYNTH *synth) | |
virtual | ~Notes () |
template<class TYPE > | |
void | add (int count) |
int | assign () |
unsigned int | size () const |
The current number of items in the array. | |
void | add (const Note *&item) |
Add the specified item to the end of the array. | |
Note ** | 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;. | |
Note *& | operator[] (int index) |
Returns a reference to the array item at the given index. | |
const Note *& | 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 | |
SYNTH * | synth |
unsigned int | noteOns = 0 |
unsigned int | noteStart [128] = { 0 } |
Note * | items [CAPACITY] |
unsigned int | count |
Array<NOTE*, 128> klang::Notes< SYNTH, NOTE >::Array |
|
inline |
Definition at line 3197 of file klang.h.
References klang::Notes< SYNTH, NOTE >::synth.
Referenced by klang::Synth::Synth().
|
inlinevirtual |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 3204 of file klang.h.
|
inline |
Definition at line 3216 of file klang.h.
|
inlinestaticinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
unsigned int klang::Notes< SYNTH, NOTE >::noteOns = 0 |
unsigned int klang::Notes< SYNTH, NOTE >::noteStart[128] = { 0 } |
SYNTH* klang::Notes< SYNTH, NOTE >::synth |
Definition at line 3192 of file klang.h.
Referenced by klang::Notes< SYNTH, NOTE >::Notes().