Provides all neccessary information for the synthesis of a DLS Instrument.
More...
#include <DLS.h>
|
bool | IsDrum |
| Indicates if the Instrument is a drum type, as they differ in the synthesis model of DLS from melodic instruments.
|
|
uint16_t | MIDIBank |
| Reflects combination of MIDIBankCoarse and MIDIBankFine (bank 1 - bank 16384). Do not change this value, it will not be saved! Change MIDIBankCoarse and MIDIBankFine instead (we might change that in future).
|
|
uint8_t | MIDIBankCoarse |
| Reflects the MIDI Bank number for MIDI Control Change 0 (bank 1 - 128).
|
|
uint8_t | MIDIBankFine |
| Reflects the MIDI Bank number for MIDI Control Change 32 (bank 1 - 128).
|
|
uint32_t | MIDIProgram |
| Specifies the MIDI Program Change Number this Instrument should be assigned to.
|
|
uint32_t | Regions |
| Reflects the number of Region defintions this Instrument has.
|
|
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.
|
|
Provides all neccessary information for the synthesis of a DLS Instrument.
Definition at line 523 of file DLS.h.
◆ ArticulationList
typedef std::list<Articulation*> DLS::Articulator::ArticulationList |
|
protectedinherited |
◆ RegionList
typedef std::list<Region*> DLS::Instrument::RegionList |
|
protected |
◆ Instrument()
Constructor.
Load an existing instrument definition or create a new one. An 'ins' list chunk must be given to this constructor. In case this 'ins' list chunk contains a 'insh' chunk, the instrument data fields will be loaded from there, otherwise default values will be used and the 'insh' chunk will be created once File::Save() was called.
- Parameters
-
pFile | - pointer to DLS::File where this instrument is located (or will be located) |
insList | - pointer to 'ins' list chunk which is (or will be) associated with this instrument |
Definition at line 1335 of file DLS.cpp.
References IsDrum, MIDIBank, MIDIBankCoarse, MIDIBankFine, MIDIProgram, RIFF::Chunk::Read(), RIFF::Chunk::ReadUint32(), Regions, DLS::Resource::Resource(), and RIFF::Chunk::SetPos().
Referenced by CopyAssign().
◆ ~Instrument()
DLS::Instrument::~Instrument |
( |
| ) |
|
|
protectedvirtual |
Destructor.
Frees all memory occupied by this instrument.
Reimplemented in gig::Instrument.
Definition at line 1465 of file DLS.cpp.
◆ AddRegion()
Region * DLS::Instrument::AddRegion |
( |
| ) |
|
◆ CopyAssign() [1/3]
void DLS::Articulator::CopyAssign |
( |
const Articulator * | orig | ) |
|
|
virtualinherited |
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.
Definition at line 270 of file DLS.cpp.
Referenced by DLS::Region::CopyAssign().
◆ CopyAssign() [2/3]
void DLS::Instrument::CopyAssign |
( |
const Instrument * | orig | ) |
|
|
virtual |
Make a (semi) deep copy of the Instrument object given by orig and assign it to this object.
Note that all sample pointers referenced by orig are simply copied as memory address. Thus the respective samples are shared, not duplicated!
- Parameters
-
orig | - original Instrument object to be copied from |
Definition at line 1524 of file DLS.cpp.
References DLS::Region::CopyAssign(), Instrument(), and Regions.
◆ CopyAssign() [3/3]
void Resource::CopyAssign |
( |
const Resource * | orig | ) |
|
|
virtualinherited |
◆ CopyAssignCore()
void DLS::Instrument::CopyAssignCore |
( |
const Instrument * | orig | ) |
|
|
protected |
◆ DeleteChunks()
void DLS::Instrument::DeleteChunks |
( |
| ) |
|
|
virtual |
◆ DeleteRegion()
void DLS::Instrument::DeleteRegion |
( |
Region * | pRegion | ) |
|
◆ GenerateDLSID() [1/2]
void Resource::GenerateDLSID |
( |
| ) |
|
|
inherited |
◆ GenerateDLSID() [2/2]
void Resource::GenerateDLSID |
( |
dlsid_t * | pDLSID | ) |
|
|
staticinherited |
◆ GetFirstArticulation()
◆ GetFirstRegion()
Region * DLS::Instrument::GetFirstRegion |
( |
| ) |
|
◆ GetNextArticulation()
◆ GetNextRegion()
Region * DLS::Instrument::GetNextRegion |
( |
| ) |
|
◆ GetParent() [1/2]
◆ GetParent() [2/2]
const Resource * DLS::Resource::GetParent |
( |
| ) |
const |
|
inlineinherited |
◆ LoadArticulations()
void DLS::Articulator::LoadArticulations |
( |
| ) |
|
|
protectedinherited |
◆ LoadRegions()
void DLS::Instrument::LoadRegions |
( |
| ) |
|
|
protectedvirtual |
◆ UpdateChunks()
void DLS::Instrument::UpdateChunks |
( |
progress_t * | pProgress | ) |
|
|
virtual |
◆ ArticulationsIterator
ArticulationList::iterator DLS::Articulator::ArticulationsIterator |
|
protectedinherited |
◆ IsDrum
bool DLS::Instrument::IsDrum |
◆ MIDIBank
uint16_t DLS::Instrument::MIDIBank |
Reflects combination of MIDIBankCoarse and MIDIBankFine (bank 1 - bank 16384). Do not change this value, it will not be saved! Change MIDIBankCoarse and MIDIBankFine instead (we might change that in future).
Definition at line 526 of file DLS.h.
Referenced by Instrument(), and UpdateChunks().
◆ MIDIBankCoarse
uint8_t DLS::Instrument::MIDIBankCoarse |
◆ MIDIBankFine
uint8_t DLS::Instrument::MIDIBankFine |
◆ MIDIProgram
uint32_t DLS::Instrument::MIDIProgram |
◆ pArticulations
ArticulationList* DLS::Articulator::pArticulations |
|
protectedinherited |
◆ pCkInstrument
◆ pDLSID
◆ pInfo
Info* DLS::Resource::pInfo |
|
inherited |
◆ pParent
◆ pParentList
◆ pRegions
RegionList* DLS::Instrument::pRegions |
|
protected |
◆ pResourceList
◆ Regions
uint32_t DLS::Instrument::Regions |
◆ RegionsIterator
RegionList::iterator DLS::Instrument::RegionsIterator |
|
protected |
The documentation for this class was generated from the following files: