libgig
4.4.1
|
Abstract base class for classes that provide articulation information (thus for Instrument and Region class). More...
#include <DLS.h>
Public Member Functions | |
Articulator (RIFF::List *ParentList) | |
Articulation * | GetArticulation (size_t pos) |
Returns Articulation at supplied pos position within the articulation list. More... | |
Articulation * | GetFirstArticulation () |
Returns the first Articulation in the list of articulations. More... | |
Articulation * | GetNextArticulation () |
Returns the next Articulation from the list of articulations. More... | |
virtual void | UpdateChunks (progress_t *pProgress) |
Apply all articulations to the respective RIFF chunks. More... | |
virtual void | DeleteChunks () |
Remove all RIFF chunks associated with this Articulator object. More... | |
virtual void | CopyAssign (const Articulator *orig) |
Not yet implemented in this version, since the .gig format does not need to copy DLS articulators and so far nobody used pure DLS instrument AFAIK. | |
Protected Types | |
typedef std::vector< Articulation * > | ArticulationList |
Protected Member Functions | |
void | LoadArticulations () |
Protected Attributes | |
RIFF::List * | pParentList |
ArticulationList * | pArticulations |
ArticulationList::iterator | ArticulationsIterator |
Abstract base class for classes that provide articulation information (thus for Instrument and Region class).
|
virtual |
Remove all RIFF chunks associated with this Articulator object.
See Storage::DeleteChunks() for details.
Implements DLS::Storage.
Reimplemented in DLS::Instrument, and DLS::Region.
Definition at line 291 of file DLS.cpp.
Referenced by DLS::Region::DeleteChunks(), and DLS::Instrument::DeleteChunks().
Articulation * DLS::Articulator::GetArticulation | ( | size_t | pos | ) |
Returns Articulation at supplied pos position within the articulation list.
If supplied pos is out of bounds then NULL
is returned.
pos | - position of sought Articulation in articulation list |
NULL
if pos is out of bounds Articulation * DLS::Articulator::GetFirstArticulation | ( | ) |
Returns the first Articulation in the list of articulations.
You have to call this method once before you can use GetNextArticulation().
Articulation * DLS::Articulator::GetNextArticulation | ( | ) |
Returns the next Articulation from the list of articulations.
You have to call GetFirstArticulation() once before you can use this method. By calling this method multiple times it iterates through the available articulations.
Definition at line 234 of file DLS.cpp.
References RIFF::List::GetListType(), RIFF::List::GetSubChunkAt(), and RIFF::List::GetSubList().
|
virtual |
Apply all articulations to the respective RIFF chunks.
You have to call File::Save() to make changes persistent.
pProgress | - callback function for progress notification |
Implements DLS::Storage.
Reimplemented in gig::Instrument, gig::Region, DLS::Instrument, and DLS::Region.
Definition at line 277 of file DLS.cpp.
Referenced by DLS::Region::UpdateChunks(), and DLS::Instrument::UpdateChunks().