Hydrogen - Linux Drum Machine |
#include <Song.h>
Inheritance diagram for Instrument:
Public Member Functions | |
virtual string | getClassName () |
Return the class name. | |
Instrument (string id, string name, string author, int type, float volume) | |
Constructor. | |
~Instrument () | |
Destructor. | |
float | getVolume () |
Return the volume. | |
void | setVolume (float volume) |
void | setId (string id) |
string | getId () |
string | getName () |
void | setName (string name) |
string | getAuthor () |
void | setSample (Sample *newSample) |
Sample * | getSample () |
bool | isMuted () |
void | setMuted (bool muted) |
void | save (string filename) |
Save an instrument to file. | |
void | setPeak_L (float p) |
float | getPeak_L () |
void | setPeak_R (float p) |
float | getPeak_R () |
float | getPan_L () |
void | setPan_L (float val) |
float | getPan_R () |
void | setPan_R (float val) |
float | getDelayLevel () |
void | setDelayLevel (float value) |
void | setDrumkitName (string drumkitName) |
string | getDrumkitName () |
vector< Instrument * > | getExcludeVect () |
Static Public Member Functions | |
Instrument * | load (string filename) |
Load an instrument from file. | |
Public Attributes | |
vector< Instrument * > | excludeVect |
exclude this instruments | |
Private Attributes | |
string | id |
ID of the instrument. | |
float | volume |
Volume of the instrument. | |
string | name |
Instrument name. | |
string | author |
author of the Instrument | |
Sample * | sample |
bool | muted |
float | peak_L |
current peak value | |
float | peak_R |
current peak value | |
float | pan_L |
Pan of the instrument (left volume). | |
float | pan_R |
Pan of the instrument (right volume). | |
float | delayLevel |
Delay level. | |
string | drumkitName |
Drumkit name. |
|
Save an instrument to file.
|