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

Song Class Reference

#include <Song.h>

Inheritance diagram for Song:

Object List of all members.

Detailed Description

Song class.


Public Member Functions

virtual string getClassName ()
 Return the class name.

 Song (string id, string name, string author, unsigned int bpm, float volume)
 Constructor.

 ~Song ()
 Destructor.

string getId ()
unsigned int getBpm ()
void setBpm (unsigned int bpm)
 Set bpm.

void setVolume (float volume)
float getVolume ()
void setMetronomeVolume (float volume)
float getMetronomeVolume ()
unsigned int getResolution ()
string getName ()
void setName (string name)
void setAuthor (string author)
string getAuthor ()
PatternListgetPatternList ()
void setPatternList (PatternList *vett)
PatternListgetPatternSequence ()
void setPatternSequence (PatternList *vett)
void save (string filename)
 Save a song to file.

InstrumentListgetInstrumentList ()
void setInstrumentList (InstrumentList *vett)
unsigned int estimateSongSize ()
 return the total number of ticks in the song

void setNotes (string newNotes)
string getNotes ()
string getFilename ()
void setFilename (string filename)
bool isModified ()
void setModified (bool status)
bool isLoopEnabled ()
void setLoopEnabled (bool enabled)
float getHumanizeTimeValue ()
void setHumanizeTimeValue (float value)
float getHumanizeVelocityValue ()
void setHumanizeVelocityValue (float value)
float getSwingFactor ()
void setSwingFactor (float factor)
int getMode ()
void setMode (int newMode)
float getDelayWetLevel ()
void setDelayWetLevel (float value)
int getDelayTime ()
void setDelayTime (int nTicks)
float getDelayFeedbackLevel ()
void setDelayFeedbackLevel (float level)
bool isDelayEnabled ()
void setDelayEnabled (bool enabled)
bool isHumanizeTimeEnabled ()
void setHumanizeTimeEnabled (bool enabled)
bool isHumanizeVelocityEnabled ()
void setHumanizeVelocityEnabled (bool enabled)
bool isSwingEnabled ()
void setSwingEnabled (bool enabled)

Static Public Member Functions

Songload (string filename)
 Load a song form file.

SonggetEmptySong ()
 Return an empty song.


Private Attributes

string id
 ID of the song.

unsigned int bpm
 Beats per minute.

unsigned int resolution
 Resolution of the song.

float volume
float metronomeVolume
string name
 song name

string author
 author of the song

string notes
 Notes.

PatternListpatternList
 List of patterns.

PatternListpatternSequence
 Sequence of patterns.

InstrumentListinstrumentList
 Track instruments.

string filename
 Filename.

bool modified
 is modified?

bool loopEnabled
bool humanizeTimeEnabled
float humanizeTimeValue
bool humanizeVelocityEnabled
float humanizeVelocityValue
bool swingEnabled
float swingFactor
int mode
 Mode: live_mode or song_mode.

float delayWetLevel
int delayTime
float delayFeedbackLevel
bool delayEnabled


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