Hydrogen - Linux Drum Machine |
#include <Song.h>
Inheritance diagram for Song:
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 () |
PatternList * | getPatternList () |
void | setPatternList (PatternList *vett) |
PatternList * | getPatternSequence () |
void | setPatternSequence (PatternList *vett) |
void | save (string filename) |
Save a song to file. | |
InstrumentList * | getInstrumentList () |
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 | |
Song * | load (string filename) |
Load a song form file. | |
Song * | getEmptySong () |
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. | |
PatternList * | patternList |
List of patterns. | |
PatternList * | patternSequence |
Sequence of patterns. | |
InstrumentList * | instrumentList |
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 |