class Melody, used to store the melodic description of a MIDI stream/file @see SegmentDescriptors More...
#include <MIDIMelody.hxx>
Public Member Functions | |
MIDIMelody () | |
MIDIMelody (const MIDIMelody &prototype, const bool shareData=false, const bool deep=true) | |
__COMMON_DYNAMIC_TYPE (MIDIMelody, 2) | |
__COMMON_DYN_ATTRIBUTE (0, public, List< MIDINote >, NoteArray) protected | |
Array of notes belonging to the melody. | |
bool | LoadNoteArray (CLAM::Storage &s) |
__COMMON_DYN_ATTRIBUTE (1, public, TSize, NumberOfNotes) protected | |
Higher-level descriptors computed from the noteArray information. | |
bool | LoadNumberOfNotes (CLAM::Storage &s) |
Protected Member Functions | |
void | DefaultInit () |
The concrete dynamic type constructor calls DefaultInit(). |
class Melody, used to store the melodic description of a MIDI stream/file @see SegmentDescriptors
Definition at line 44 of file MIDIMelody.hxx.
CLAM::MIDIMelody::MIDIMelody | ( | ) | [inline] |
Definition at line 47 of file MIDIMelody.hxx.
CLAM::MIDIMelody::MIDIMelody | ( | const MIDIMelody & | prototype, | |
const bool | shareData = false , |
|||
const bool | deep = true | |||
) | [inline] |
Definition at line 47 of file MIDIMelody.hxx.
CLAM::MIDIMelody::__COMMON_DYN_ATTRIBUTE | ( | 1 | , | |
public | , | |||
TSize | , | |||
NumberOfNotes | ||||
) | [inline] |
Higher-level descriptors computed from the noteArray information.
Definition at line 51 of file MIDIMelody.hxx.
Array of notes belonging to the melody.
Definition at line 49 of file MIDIMelody.hxx.
CLAM::MIDIMelody::__COMMON_DYNAMIC_TYPE | ( | MIDIMelody | , | |
2 | ||||
) |
void MIDIMelody::DefaultInit | ( | void | ) | [protected] |
The concrete dynamic type constructor calls DefaultInit().
This allows user to initialize his/her object. But we define DefaultInit() here because we don't want to force writting one DefaultInit() function for each concrete dynamic type. If a dynamic type concrete class defines some (not-default) constructors, this should also call the DefaultInit().
Reimplemented from CLAM::DynamicType.
Definition at line 26 of file MIDIMelody.cxx.
References CLAM::DynamicType::UpdateData().
bool CLAM::MIDIMelody::LoadNoteArray | ( | CLAM::Storage & | s | ) | [inline] |
Definition at line 49 of file MIDIMelody.hxx.
bool CLAM::MIDIMelody::LoadNumberOfNotes | ( | CLAM::Storage & | s | ) | [inline] |
Definition at line 51 of file MIDIMelody.hxx.