libgig  4.4.1
DLS::Articulation Class Reference

Provides access to the defined connections used for the synthesis model. More...

#include <DLS.h>

Inheritance diagram for DLS::Articulation:
DLS::Storage

Public Member Functions

 Articulation (RIFF::Chunk *artl)
 Constructor. More...
 
virtual void UpdateChunks (progress_t *pProgress)
 Apply articulation connections to the respective RIFF chunks. More...
 
virtual void DeleteChunks ()
 Remove all RIFF chunks associated with this Articulation object. More...
 

Public Attributes

ConnectionpConnections
 Points to the beginning of a Connection array.
 
uint32_t Connections
 Reflects the number of Connections.
 

Protected Attributes

RIFF::ChunkpArticulationCk
 
uint32_t HeaderSize
 

Detailed Description

Provides access to the defined connections used for the synthesis model.

Definition at line 328 of file DLS.h.

Constructor & Destructor Documentation

◆ Articulation()

DLS::Articulation::Articulation ( RIFF::Chunk artl)

Constructor.

Expects an 'artl' or 'art2' chunk to be given where the articulation connections will be read from.

Parameters
artl- pointer to an 'artl' or 'art2' chunk
Exceptions
Exceptionif no 'artl' or 'art2' chunk was given

Definition at line 119 of file DLS.cpp.

References RIFF::Chunk::GetChunkID(), RIFF::Chunk::Read(), RIFF::Chunk::ReadUint32(), and RIFF::Chunk::SetPos().

Member Function Documentation

◆ DeleteChunks()

void DLS::Articulation::DeleteChunks ( )
virtual

Remove all RIFF chunks associated with this Articulation object.

At the moment Articulation::DeleteChunks() does nothing. It is recommended to call this method explicitly though from deriving classes's own overridden implementation of this method to avoid potential future compatiblity issues.

See Storage::DeleteChunks() for details.

Implements DLS::Storage.

Definition at line 179 of file DLS.cpp.

◆ UpdateChunks()

void DLS::Articulation::UpdateChunks ( progress_t pProgress)
virtual

Apply articulation connections to the respective RIFF chunks.

You have to call File::Save() to make changes persistent.

Parameters
pProgress- callback function for progress notification

Implements DLS::Storage.

Definition at line 154 of file DLS.cpp.


The documentation for this class was generated from the following files: