23#ifndef H2C_DRUMKITCOMPONENT_H
24#define H2C_DRUMKITCOMPONENT_H
49 static std::shared_ptr<DrumkitComponent>
load_from(
51 bool* pLegacyFormatEncountered =
nullptr );
53 void load_from( std::shared_ptr<DrumkitComponent> component );
55 void set_name(
const QString& name );
58 void set_id(
const int id );
76 void set_outs(
int nBufferPos,
float valL,
float valR );
87 QString
toQString(
const QString& sPrefix =
"",
bool bShort =
true )
const override;
Attack Decay Sustain Release envelope.
QString __name
Name of the DrumkitComponent.
DrumkitComponent(const int id, const QString &name)
void set_name(const QString &name)
Sets the name of the DrumkitComponent __name.
const QString & get_name() const
Access the name of the DrumkitComponent.
static std::shared_ptr< DrumkitComponent > load_from(XMLNode *node, bool *pLegacyFormatEncountered=nullptr)
void set_soloed(bool soloed)
void set_volume(float volume)
void save_to(XMLNode *node)
void set_outs(int nBufferPos, float valL, float valR)
void set_peak_r(float val)
void set_id(const int id)
QString toQString(const QString &sPrefix="", bool bShort=true) const override
Formatted string version for debugging purposes.
float get_out_L(int nBufferPos)
void reset_outs(uint32_t nFrames)
void set_muted(bool active)
void set_peak_l(float val)
float get_out_R(int nBufferPos)
InstrumentLayer is part of an instrument each layer has it's own : gain which is the ration between...
XMLNode is a subclass of QDomNode with read and write values methods.