#include <DLS.h>
Inheritance diagram for DLS::Instrument:
Public Member Functions | |
Region * | GetFirstRegion () |
Region * | GetNextRegion () |
Resource * | GetParent () |
Articulation * | GetFirstArticulation () |
Articulation * | GetNextArticulation () |
Public Attributes | |
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). | |
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. | |
Protected Types | |
typedef std::list< Region * > | RegionList |
typedef std::list< Articulation * > | ArticulationList |
Protected Member Functions | |
Instrument (File *pFile, RIFF::List *insList) | |
void | LoadRegions () |
virtual | ~Instrument () |
void | LoadArticulations () |
Protected Attributes | |
RIFF::List * | pCkInstrument |
RegionList * | pRegions |
RegionList::iterator | RegionsIterator |
Resource * | pParent |
RIFF::List * | pParentList |
ArticulationList * | pArticulations |
ArticulationList::iterator | ArticulationsIterator |
Friends | |
class | File |
Definition at line 425 of file DLS.h.
|
|
|
|
|
Definition at line 335 of file DLS.cpp. References DLS::Instrument::midi_locale_t::bank, CHUNK_ID_INSH, RIFF::List::GetSubChunk(), DLS::Instrument::midi_locale_t::instrument, IsDrum, MIDI_BANK_COARSE, MIDI_BANK_FINE, MIDI_BANK_MERGE, MIDIBank, MIDIBankCoarse, MIDIBankFine, MIDIProgram, pCkInstrument, pRegions, RIFF::Chunk::Read(), RIFF::Chunk::ReadUint32(), and Regions. |
|
Reimplemented in gig::Instrument. Definition at line 379 of file DLS.cpp. References pRegions. |
|
Definition at line 85 of file DLS.cpp. References DLS::Articulator::ArticulationsIterator, DLS::Articulator::LoadArticulations(), and DLS::Articulator::pArticulations. |
|
Reimplemented in gig::Instrument. Definition at line 352 of file DLS.cpp. References LoadRegions(), pRegions, and RegionsIterator. Referenced by PrintRegions(). |
|
Definition at line 92 of file DLS.cpp. References DLS::Articulator::ArticulationsIterator, and DLS::Articulator::pArticulations. |
|
Reimplemented in gig::Instrument. Definition at line 359 of file DLS.cpp. References pRegions, and RegionsIterator. Referenced by PrintRegions(). |
|
Definition at line 350 of file DLS.h. Referenced by DLS::Region::GetSample(), gig::Region::GetSampleFromWavePool(), and gig::Region::Region(). |
|
Definition at line 98 of file DLS.cpp. References RIFF::List::GetFirstSubList(), RIFF::List::GetListType(), RIFF::List::GetNextSubList(), RIFF::List::GetSubList(), LIST_TYPE_ART2, LIST_TYPE_LAR2, LIST_TYPE_LART, DLS::Articulator::pArticulations, and DLS::Articulator::pParentList. Referenced by DLS::Articulator::GetFirstArticulation(). |
|
Definition at line 365 of file DLS.cpp. References RIFF::List::GetFirstSubList(), RIFF::List::GetListType(), RIFF::List::GetNextSubList(), RIFF::List::GetSubList(), LIST_TYPE_LRGN, LIST_TYPE_RGN2, pCkInstrument, and pRegions. Referenced by GetFirstRegion(). |
|
Reimplemented in gig::Instrument. |
|
Definition at line 306 of file DLS.h. Referenced by DLS::Articulator::GetFirstArticulation(), and DLS::Articulator::GetNextArticulation(). |
|
Indicates if the Instrument is a drum type, as they differ in the synthesis model of DLS from melodic instruments.
Definition at line 427 of file DLS.h. Referenced by Instrument(). |
|
Reflects combination of MIDIBankCoarse and MIDIBankFine (bank 1 - bank 16384).
Definition at line 428 of file DLS.h. Referenced by Instrument(), and PrintInstruments(). |
|
Reflects the MIDI Bank number for MIDI Control Change 0 (bank 1 - 128).
Definition at line 429 of file DLS.h. Referenced by Instrument(). |
|
Reflects the MIDI Bank number for MIDI Control Change 32 (bank 1 - 128).
Definition at line 430 of file DLS.h. Referenced by Instrument(). |
|
Specifies the MIDI Program Change Number this Instrument should be assigned to.
Definition at line 431 of file DLS.h. Referenced by Instrument(), and PrintInstruments(). |
|
Definition at line 305 of file DLS.h. Referenced by DLS::Articulator::Articulator(), DLS::Articulator::GetFirstArticulation(), DLS::Articulator::GetNextArticulation(), DLS::Articulator::LoadArticulations(), and DLS::Articulator::~Articulator(). |
|
Definition at line 443 of file DLS.h. Referenced by Instrument(), and LoadRegions(). |
|
Points to a dlsid_t structure if the file provided a DLS ID else is NULL.
Definition at line 348 of file DLS.h. Referenced by DLS::Resource::Resource(). |
|
Points (in any case) to an Info object, providing additional, optional infos and comments.
Definition at line 347 of file DLS.h. Referenced by ExtractSamples(), main(), PrintDimensionRegions(), PrintInstruments(), PrintRegions(), PrintSamples(), and DLS::Resource::Resource(). |
|
Definition at line 352 of file DLS.h. Referenced by DLS::Resource::Resource(). |
|
Definition at line 304 of file DLS.h. Referenced by DLS::Articulator::Articulator(), and DLS::Articulator::LoadArticulations(). |
|
Reimplemented in gig::Instrument. Definition at line 444 of file DLS.h. Referenced by GetFirstRegion(), GetNextRegion(), Instrument(), LoadRegions(), and ~Instrument(). |
|
Reflects the number of Region defintions this Instrument has.
Definition at line 432 of file DLS.h. Referenced by Instrument(). |
|
Definition at line 445 of file DLS.h. Referenced by GetFirstRegion(), and GetNextRegion(). |