#include <DLS.h>
Inheritance diagram for DLS::Region:
Public Member Functions | |
Sample * | GetSample () |
void | SetSample (Sample *pSample) |
Assign another sample to this Region. | |
virtual void | SetKeyRange (uint16_t Low, uint16_t High) |
Modifies the key range of this Region and makes sure the respective chunks are in correct order. | |
virtual void | UpdateChunks () |
Apply Region settings to the respective RIFF chunks. | |
Resource * | GetParent () |
void | GenerateDLSID () |
Generates a new DLSID for the resource. | |
Articulation * | GetFirstArticulation () |
Articulation * | GetNextArticulation () |
void | AddSampleLoop (sample_loop_t *pLoopDef) |
Adds a new sample loop with the provided loop definition. | |
void | DeleteSampleLoop (sample_loop_t *pLoopDef) |
Deletes an existing sample loop. | |
virtual void | SetGain (int32_t gain) |
Public Attributes | |
range_t | KeyRange |
range_t | VelocityRange |
uint16_t | KeyGroup |
uint16_t | Layer |
bool | SelfNonExclusive |
bool | PhaseMaster |
uint16_t | PhaseGroup |
bool | MultiChannel |
uint32_t | Channel |
Info * | pInfo |
Points (in any case) to an Info object, providing additional, optional infos and comments. | |
dlsid_t * | pDLSID |
Points to a dlsid_t structure if the file provided a DLS ID else is NULL. | |
uint8_t | UnityNote |
int16_t | FineTune |
int32_t | Gain |
bool | NoSampleDepthTruncation |
bool | NoSampleCompression |
uint32_t | SampleLoops |
Reflects the number of sample loops. | |
sample_loop_t * | pSampleLoops |
Points to the beginning of a sample loop array, or is NULL if there are no loops defined. | |
Protected Types | |
typedef std::list< Articulation * > | ArticulationList |
Protected Member Functions | |
Region (Instrument *pInstrument, RIFF::List *rgnList) | |
virtual | ~Region () |
Destructor. | |
void | LoadArticulations () |
Protected Attributes | |
RIFF::List * | pCkRegion |
uint32_t | WavePoolTableIndex |
Sample * | pSample |
uint16_t | FormatOptionFlags |
uint16_t | WaveLinkOptionFlags |
Resource * | pParent |
RIFF::List * | pResourceList |
RIFF::List * | pParentList |
ArticulationList * | pArticulations |
ArticulationList::iterator | ArticulationsIterator |
RIFF::List * | pParentList |
uint32_t | uiHeaderSize |
uint32_t | SamplerOptions |
Friends | |
class | Instrument |
Definition at line 418 of file DLS.h.
|
|
|
|
Destructor. Removes RIFF chunks associated with this Region. Reimplemented in gig::Region. Definition at line 909 of file DLS.cpp. References RIFF::Chunk::GetParent(), pCkRegion, and DLS::Resource::pParent. |
|
Adds a new sample loop with the provided loop definition.
Definition at line 575 of file DLS.cpp. References DLS::Sampler::pSampleLoops, and DLS::Sampler::SampleLoops. |
|
Deletes an existing sample loop.
Definition at line 597 of file DLS.cpp. References DLS::Sampler::pSampleLoops, and DLS::Sampler::SampleLoops. |
|
Generates a new DLSID for the resource.
Definition at line 449 of file DLS.cpp. References DLS::dlsid_t::abData, DLS::Resource::pDLSID, DLS::dlsid_t::ulData1, DLS::dlsid_t::usData2, and DLS::dlsid_t::usData3. Referenced by gig::File::AddInstrument(), and gig::File::File(). |
|
Definition at line 173 of file DLS.cpp. References DLS::Articulator::ArticulationsIterator, DLS::Articulator::LoadArticulations(), and DLS::Articulator::pArticulations. |
|
Definition at line 180 of file DLS.cpp. References DLS::Articulator::ArticulationsIterator, and DLS::Articulator::pArticulations. |
|
Definition at line 344 of file DLS.h. References DLS::Resource::pParent. Referenced by gig::Region::AddDimension(), GetSample(), gig::Region::GetSampleFromWavePool(), gig::Region::SetKeyRange(), SetKeyRange(), gig::Instrument::UpdateChunks(), gig::DimensionRegion::UpdateChunks(), and UpdateChunks(). |
|
Reimplemented in gig::Region. Definition at line 914 of file DLS.cpp. References DLS::File::GetFirstSample(), DLS::File::GetNextSample(), DLS::Resource::GetParent(), pSample, DLS::File::pWavePoolTable, DLS::Sample::ulWavePoolOffset, and WavePoolTableIndex. |
|
Definition at line 186 of file DLS.cpp. References CHUNK_ID_ART2, CHUNK_ID_ARTL, RIFF::Chunk::GetChunkID(), RIFF::List::GetFirstSubChunk(), RIFF::List::GetListType(), RIFF::List::GetNextSubChunk(), RIFF::List::GetSubList(), LIST_TYPE_LAR2, LIST_TYPE_LART, DLS::Articulator::pArticulations, and DLS::Articulator::pParentList. Referenced by DLS::Articulator::GetFirstArticulation(). |
|
Reimplemented in gig::DimensionRegion. Definition at line 530 of file DLS.cpp. References DLS::Sampler::Gain. Referenced by gig::DimensionRegion::SetGain(). |
|
Modifies the key range of this Region and makes sure the respective chunks are in correct order.
Reimplemented in gig::Region. Definition at line 943 of file DLS.cpp. References DLS::Resource::GetParent(), DLS::range_t::high, KeyRange, DLS::Instrument::LoadRegions(), DLS::range_t::low, and DLS::Instrument::pRegions. Referenced by gig::Region::SetKeyRange(). |
|
Assign another sample to this Region.
Definition at line 931 of file DLS.cpp. References pSample, and WavePoolTableIndex. |
|
Apply Region settings to the respective RIFF chunks. You have to call File::Save() to make changes persistent.
Reimplemented from DLS::Articulator. Reimplemented in gig::Region. Definition at line 977 of file DLS.cpp. References RIFF::List::AddSubChunk(), CHUNK_ID_RGNH, CHUNK_ID_WLNK, F_RGN_OPTION_SELFNONEXCLUSIVE, F_WAVELINK_MULTICHANNEL, F_WAVELINK_PHASE_MASTER, FormatOptionFlags, DLS::Resource::GetParent(), RIFF::Chunk::GetSize(), RIFF::List::GetSubChunk(), DLS::range_t::high, KeyGroup, KeyRange, Layer, RIFF::Chunk::LoadChunkData(), DLS::range_t::low, MultiChannel, pCkRegion, PhaseMaster, pSample, DLS::File::pSamples, SelfNonExclusive, DLS::Sampler::UpdateChunks(), DLS::Articulator::UpdateChunks(), VelocityRange, and WaveLinkOptionFlags. Referenced by gig::Region::UpdateChunks(). |
|
Reimplemented in gig::Region. |
|
Definition at line 293 of file DLS.h. Referenced by DLS::Articulator::GetFirstArticulation(), and DLS::Articulator::GetNextArticulation(). |
|
Definition at line 428 of file DLS.h. Referenced by Region(). |
|
Definition at line 359 of file DLS.h. Referenced by DLS::Sampler::Sampler(). |
|
Definition at line 438 of file DLS.h. Referenced by Region(), and UpdateChunks(). |
|
Definition at line 360 of file DLS.h. Referenced by DLS::Sampler::Sampler(), gig::DimensionRegion::SetGain(), and DLS::Sampler::SetGain(). |
|
Definition at line 422 of file DLS.h. Referenced by Region(), and UpdateChunks(). |
|
Definition at line 420 of file DLS.h. Referenced by Region(), SetKeyRange(), and UpdateChunks(). |
|
Definition at line 423 of file DLS.h. Referenced by Region(), and UpdateChunks(). |
|
Definition at line 427 of file DLS.h. Referenced by Region(), and UpdateChunks(). |
|
Definition at line 362 of file DLS.h. Referenced by DLS::Sampler::Sampler(). |
|
Definition at line 361 of file DLS.h. Referenced by DLS::Sampler::Sampler(). |
|
Definition at line 292 of file DLS.h. Referenced by DLS::Articulator::Articulator(), DLS::Articulator::GetFirstArticulation(), DLS::Articulator::GetNextArticulation(), DLS::Articulator::LoadArticulations(), DLS::Articulator::UpdateChunks(), and DLS::Articulator::~Articulator(). |
|
Definition at line 435 of file DLS.h. Referenced by Region(), UpdateChunks(), and ~Region(). |
|
Points to a dlsid_t structure if the file provided a DLS ID else is NULL.
Definition at line 342 of file DLS.h. Referenced by DLS::Resource::GenerateDLSID(), DLS::Resource::Resource(), DLS::Resource::UpdateChunks(), and DLS::Resource::~Resource(). |
|
Definition at line 426 of file DLS.h. Referenced by Region(). |
|
Definition at line 425 of file DLS.h. Referenced by Region(), and UpdateChunks(). |
|
Points (in any case) to an Info object, providing additional, optional infos and comments.
Definition at line 341 of file DLS.h. Referenced by gig::File::AddInstrument(), gig::File::File(), gig::Instrument::Instrument(), DLS::Resource::Resource(), gig::Sample::Sample(), DLS::Resource::UpdateChunks(), and DLS::Resource::~Resource(). |
|
Definition at line 348 of file DLS.h. Referenced by DLS::Resource::GetParent(), DLS::Resource::Resource(), gig::Sample::UpdateChunks(), DLS::Instrument::~Instrument(), ~Region(), and DLS::Sample::~Sample(). |
|
Definition at line 371 of file DLS.h. Referenced by gig::DimensionRegion::DimensionRegion(), DLS::Sampler::Sampler(), gig::DimensionRegion::UpdateChunks(), and DLS::Sampler::UpdateChunks(). |
|
Definition at line 291 of file DLS.h. Referenced by DLS::Articulator::Articulator(), and DLS::Articulator::LoadArticulations(). |
|
Definition at line 349 of file DLS.h. Referenced by DLS::Resource::Resource(), and DLS::Resource::UpdateChunks(). |
|
Definition at line 437 of file DLS.h. Referenced by gig::Region::GetSample(), GetSample(), Region(), SetSample(), gig::Region::UpdateChunks(), and UpdateChunks(). |
|
Points to the beginning of a sample loop array, or is NULL if there are no loops defined.
Definition at line 364 of file DLS.h. Referenced by DLS::Sampler::AddSampleLoop(), DLS::Sampler::DeleteSampleLoop(), gig::DimensionRegion::DimensionRegion(), gig::Sample::ReadAndLoop(), DLS::Sampler::Sampler(), and DLS::Sampler::~Sampler(). |
|
Reflects the number of sample loops.
Definition at line 363 of file DLS.h. Referenced by DLS::Sampler::AddSampleLoop(), DLS::Sampler::DeleteSampleLoop(), gig::DimensionRegion::DimensionRegion(), gig::Sample::ReadAndLoop(), DLS::Sampler::Sampler(), and DLS::Sampler::UpdateChunks(). |
|
Definition at line 373 of file DLS.h. Referenced by gig::DimensionRegion::DimensionRegion(), and DLS::Sampler::Sampler(). |
|
Definition at line 424 of file DLS.h. Referenced by Region(), and UpdateChunks(). |
|
Definition at line 372 of file DLS.h. Referenced by DLS::Sampler::Sampler(), and DLS::Sampler::UpdateChunks(). |
|
Definition at line 358 of file DLS.h. Referenced by DLS::Sampler::Sampler(). |
|
Definition at line 421 of file DLS.h. Referenced by Region(), and UpdateChunks(). |
|
Definition at line 439 of file DLS.h. Referenced by Region(), and UpdateChunks(). |
|
Definition at line 436 of file DLS.h. Referenced by gig::Region::GetSample(), GetSample(), Region(), and SetSample(). |