CLAM::MIDIMelody Class Reference

class Melody, used to store the melodic description of a MIDI stream/file @see SegmentDescriptors More...

#include <MIDIMelody.hxx>

List of all members.

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

Detailed Description

class Melody, used to store the melodic description of a MIDI stream/file @see SegmentDescriptors

Definition at line 44 of file MIDIMelody.hxx.


Constructor & Destructor Documentation

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.


Member Function Documentation

CLAM::MIDIMelody::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
TSize  ,
NumberOfNotes   
) [inline]

Higher-level descriptors computed from the noteArray information.

Definition at line 51 of file MIDIMelody.hxx.

CLAM::MIDIMelody::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
List< MIDINote ,
NoteArray   
) [inline]

Array of notes belonging to the melody.

Definition at line 49 of file MIDIMelody.hxx.

CLAM::MIDIMelody::__COMMON_DYNAMIC_TYPE ( MIDIMelody  ,
 
)
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().

See also:
CopyInit()

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.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.3