Hydrogen - Linux Drum Machine
Main Page | Class Hierarchy | Compound List | File List | Compound Members

Instrument Class Reference

#include <Song.h>

Inheritance diagram for Instrument:

Object List of all members.

Detailed Description

Instrument class (sample + info).


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)
SamplegetSample ()
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

Instrumentload (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

Samplesample
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.


Member Function Documentation

void Instrument::save string  filename  ) 
 

Save an instrument to file.

:


The documentation for this class was generated from the following files:
 
 
Hydrogen (c) 2002..2003 Comix