#include <Song.h>
Inheritance diagram for TSE3::Song:
Public Member Functions | |
Song (int noTracks=defaultNoTracks) | |
virtual | ~Song () |
PhraseList * | phraseList () |
TempoTrack * | tempoTrack () |
TimeSigTrack * | timeSigTrack () |
KeySigTrack * | keySigTrack () |
FlagTrack * | flagTrack () |
const std::string & | title () const |
void | setTitle (const std::string &s) |
const std::string & | author () const |
void | setAuthor (const std::string &s) |
const std::string & | copyright () const |
void | setCopyright (const std::string &s) |
const std::string & | date () const |
void | setDate (const std::string &s) |
size_t | size () const |
Track * | operator[] (size_t n) const |
size_t | index (Track *track) const |
Track * | insert (int n=-1) |
void | insert (Track *track, int n=-1) |
void | remove (size_t n) |
void | remove (Track *track) |
int | soloTrack () const |
void | setSoloTrack (int t) |
bool | repeat () const |
void | setRepeat (bool status) |
Clock | from () const |
void | setFrom (Clock from) |
Clock | to () const |
void | setTo (Clock to) |
virtual void | Track_PartInserted (Track *, Part *) |
virtual void | Track_PartRemoved (Track *, Part *) |
virtual void | Notifier_Deleted (Track *) |
virtual PlayableIterator * | iterator (Clock index) |
virtual Clock | lastClock () const |
virtual void | save (std::ostream &o, int i) const |
virtual void | load (std::istream &in, SerializableLoadInfo &info) |
Static Public Attributes | |
const int | defaultNoTracks = 16 |
The Song is the container of an entire piece of music. It contains a number of Track s, which play concurrently - they correspond to the different members in a band playing together.
The Song class also holds a TempoTrack, TimeSigTrack, KeySigTrack, and FlagTrack. It conatins the PhraseList which holds the list of every Phrase in the Song. (The are used by Part objects held within each Track).
|
Creates a Song containing the given number of . Each Track will be empty.
|
|
|
|
Returns the Song's PhraseList.
|
|
Returns the Song's TempoTrack.
|
|
Returns the Song's TimeSigTrack.
|
|
Returns the Song's KeySigTrack.
|
|
Returns the Song's FlagTrack.
|
|
Read the Song title.
|
|
Set the Song title.
|
|
Read the Song author.
|
|
Set the Song author.
|
|
Read the Song copyright message.
|
|
Set the Song copyright message.
|
|
Read the Song date.
|
|
Set the Song date.
|
|
Returns the number of Track objects in the Song.
|
|
Returns the Track at the given index. The value returned for an index that is out of range is undefined. The size method describes the valid values.
|
|
Returns the index of the specified Track (or size if not in this Song).
|
|
Inserts a Track at the given position. If you don't specify a position, the the Track will be inserted at the end. This causes the Track to be 'owned' by the Song, it will be deleted when the Song is deleted.
|
|
Insert this Track at the given position. If you don't specify a position, the the Track will be inserted at the end. This causes the Track to be 'owned' by the Song, it will be deleted when the Song is deleted. If the Track has already been inserted in a Song, the SongError exception will be thrown.
|
|
Remove the Track at the given position. This will not delete it.
|
|
Removes the given Track. This will not delete it. Track to remove - you must now delete it |
|
Returns the currently soloed Track. A value of -1 means that no Track is soloed. By default, no Track is soloed.
|
|
Set the solo Track.
|
|
Returns whether the repeat facility is enabled. When repeat is on, the Transport object will loop playback from the to to the from positions. By default, repeat is disabled.
|
|
Sets the repeat modes status.
|
|
Return the 'from' value. This is the left repeat marker position. When repeat is enabled in the Transport object time will loop back to here from the to position.
|
|
Sets the 'from' value.
|
|
Return the 'to' value. This is the right repeat marker position. When repeat is enabled in the Transport object time will loop back from here from the from position.
|
|
Sets the 'to' value.
|
|
Reimplemented from TSE3::TrackListener. |
|
Reimplemented from TSE3::TrackListener. |
|
|
|
Implements TSE3::Playable. |
|
This value is cached, not recalculated each time. Implements TSE3::Playable. |
|
Reimplemented from TSE3::Serializable. |
|
Reimplemented from TSE3::Serializable. |
|
The default number of in a new Song. |