|
hydrogen 1.1.1
|
#include <DrumkitComponent.h>
Public Member Functions | |
| DrumkitComponent (const int id, const QString &name) | |
| DrumkitComponent (DrumkitComponent *other) | |
| ~DrumkitComponent () | |
| void | save_to (XMLNode *node) |
| void | load_from (DrumkitComponent *component, bool is_live=true) |
| void | set_name (const QString &name) |
| Sets the name of the DrumkitComponent __name. More... | |
| const QString & | get_name () const |
| Access the name of the DrumkitComponent. More... | |
| void | set_id (const int id) |
| int | get_id () const |
| void | set_volume (float volume) |
| float | get_volume () const |
| void | set_muted (bool active) |
| bool | is_muted () const |
| void | set_soloed (bool soloed) |
| bool | is_soloed () const |
| void | set_peak_l (float val) |
| float | get_peak_l () const |
| void | set_peak_r (float val) |
| float | get_peak_r () const |
| void | reset_outs (uint32_t nFrames) |
| void | set_outs (int nBufferPos, float valL, float valR) |
| float | get_out_L (int nBufferPos) |
| float | get_out_R (int nBufferPos) |
| QString | toQString (const QString &sPrefix, bool bShort=true) const override |
| Formatted string version for debugging purposes. More... | |
Public Member Functions inherited from Object | |
| ~Object () | |
| destructor More... | |
| Object (const Object &obj) | |
| copy constructor More... | |
| Object (const char *class_name) | |
| constructor More... | |
| const char * | class_name () const |
| return the class name More... | |
| virtual QString | toQString (const QString &sPrefix, bool bShort=true) const |
| Formatted string version for debugging purposes. More... | |
| void | Print (bool bShort=true) const |
| Prints content of toQString() via DEBUGLOG. More... | |
Static Public Member Functions | |
| static DrumkitComponent * | load_from (XMLNode *node, const QString &dk_path) |
Static Public Member Functions inherited from Object | |
| static void | set_count (bool flag) |
| enable/disable class instances counting More... | |
| static bool | count_active () |
| return true if class instances counting is enabled More... | |
| static unsigned | objects_count () |
| return the number of objects More... | |
| static void | write_objects_map_to (std::ostream &out) |
| output the full objects map to a given ostream More... | |
| static void | write_objects_map_to_cerr () |
| output objects map to stderr More... | |
| static int | bootstrap (Logger *logger, bool count=false) |
| must be called before any Object instantiation ! More... | |
| static Logger * | logger () |
| return the logger instance More... | |
Private Attributes | |
| int | __id |
| QString | __name |
| Name of the DrumkitComponent. More... | |
| float | __volume |
| bool | __muted |
| bool | __soloed |
| float | __peak_l |
| float | __peak_r |
| float * | __out_L |
| float * | __out_R |
Additional Inherited Members | |
Static Public Attributes inherited from Object | |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. More... | |
Static Protected Attributes inherited from Object | |
| static Logger * | __logger = nullptr |
| logger instance pointer More... | |
| DrumkitComponent | ( | const int | id, |
| const QString & | name | ||
| ) |
| DrumkitComponent | ( | DrumkitComponent * | other | ) |
| ~DrumkitComponent | ( | ) |
|
inline |
|
inline |
Access the name of the DrumkitComponent.
| float get_out_L | ( | int | nBufferPos | ) |
| float get_out_R | ( | int | nBufferPos | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void load_from | ( | DrumkitComponent * | component, |
| bool | is_live = true |
||
| ) |
|
static |
| void reset_outs | ( | uint32_t | nFrames | ) |
| void save_to | ( | XMLNode * | node | ) |
|
inline |
|
inline |
|
inline |
Sets the name of the DrumkitComponent __name.
| name | New name. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Formatted string version for debugging purposes.
| sPrefix | String prefix which will be added in front of every new line |
| bShort | Instead of the whole content of all classes stored as members just a single unique identifier will be displayed without line breaks. |
Reimplemented from Object.
|
private |
|
private |
|
private |
Name of the DrumkitComponent.
It is set by set_name() and accessed via get_name().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |