#include <SF.h>
Inheritance diagram for sf2::Preset:

Public Member Functions | |
| Preset (sf2::File *pFile, RIFF::Chunk *ck) | |
| ~Preset () | |
| void | LoadRegions (int idx1, int idx2) |
| Load all regions (zones, bags) in the range idx1 - idx2. | |
| Region * | CreateRegion () |
| sf2::File * | GetFile () |
| String | GetName () |
| int | GetRegionCount () |
| Region * | GetRegion (int idx) |
Public Attributes | |
| uint16_t | PresetNum |
| uint16_t | Bank |
| uint32_t | Library |
| uint32_t | Genre |
| uint32_t | Morphology |
| sf2::File * | pFile |
| uint16_t | PresetBagNdx |
| String | Name |
| Region * | pGlobalRegion |
Protected Attributes | |
| std::vector< Region * > | regions |
Definition at line 488 of file SF.h.
| sf2::Preset::Preset | ( | sf2::File * | pFile, | |
| RIFF::Chunk * | ck | |||
| ) |
Definition at line 793 of file SF.cpp.
References Bank, Genre, Library, sf2::LoadString(), Morphology, sf2::InstrumentBase::Name, pFile, PresetBagNdx, PresetNum, RIFF::Chunk::ReadInt16(), and RIFF::Chunk::ReadInt32().
| void sf2::Preset::LoadRegions | ( | int | idx1, | |
| int | idx2 | |||
| ) |
Load all regions (zones, bags) in the range idx1 - idx2.
Definition at line 848 of file SF.cpp.
References CreateRegion(), pFile, sf2::InstrumentBase::pGlobalRegion, sf2::Region::pInstrument, sf2::File::PresetBags, sf2::File::PresetGenLists, sf2::InstrumentBase::regions, and sf2::Region::SetGenerator().
| Region * sf2::Preset::CreateRegion | ( | ) |
Definition at line 807 of file SF.cpp.
References sf2::Region::coarseTune, sf2::Region::delayModLfo, sf2::Region::delayVibLfo, sf2::Region::EG1Attack, sf2::Region::EG1Decay, sf2::Region::EG1Hold, sf2::Region::EG1PreAttackDelay, sf2::Region::EG1Release, sf2::Region::EG1Sustain, sf2::Region::EG2Attack, sf2::Region::EG2Decay, sf2::Region::EG2Hold, sf2::Region::EG2PreAttackDelay, sf2::Region::EG2Release, sf2::Region::EG2Sustain, sf2::Region::fineTune, sf2::Region::freqModLfo, sf2::Region::freqVibLfo, sf2::Region::modEnvToFilterFc, sf2::Region::modEnvToPitch, sf2::Region::modLfoToFilterFc, sf2::Region::modLfoToPitch, sf2::Region::modLfoToVolume, sf2::Region::pan, sf2::InstrumentBase::pGlobalRegion, and sf2::Region::vibLfoToPitch.
Referenced by LoadRegions().
| sf2::File* sf2::InstrumentBase::GetFile | ( | ) | [inline, inherited] |
| String sf2::InstrumentBase::GetName | ( | ) | [inline, inherited] |
| int sf2::InstrumentBase::GetRegionCount | ( | ) | [inherited] |
Definition at line 648 of file SF.cpp.
References sf2::InstrumentBase::regions.
Referenced by sf2::InstrumentBase::GetRegion(), and sf2::Query::next().
| Region * sf2::InstrumentBase::GetRegion | ( | int | idx | ) | [inherited] |
Definition at line 652 of file SF.cpp.
References sf2::InstrumentBase::GetRegionCount(), and sf2::InstrumentBase::regions.
Referenced by sf2::File::DeleteInstrument(), and sf2::Query::next().
| uint16_t sf2::Preset::PresetNum |
| uint16_t sf2::Preset::Bank |
| uint32_t sf2::Preset::Library |
| uint32_t sf2::Preset::Genre |
| uint32_t sf2::Preset::Morphology |
Reimplemented from sf2::InstrumentBase.
Definition at line 500 of file SF.h.
Referenced by LoadRegions(), and Preset().
| uint16_t sf2::Preset::PresetBagNdx |
String sf2::InstrumentBase::Name [inherited] |
Definition at line 441 of file SF.h.
Referenced by sf2::InstrumentBase::GetName(), sf2::Instrument::Instrument(), and Preset().
Region* sf2::InstrumentBase::pGlobalRegion [inherited] |
Definition at line 442 of file SF.h.
Referenced by CreateRegion(), sf2::Instrument::CreateRegion(), sf2::InstrumentBase::InstrumentBase(), LoadRegions(), sf2::Instrument::LoadRegions(), and sf2::InstrumentBase::~InstrumentBase().
std::vector<Region*> sf2::InstrumentBase::regions [protected, inherited] |
Definition at line 454 of file SF.h.
Referenced by sf2::Instrument::DeleteRegion(), sf2::InstrumentBase::GetRegion(), sf2::InstrumentBase::GetRegionCount(), LoadRegions(), sf2::Instrument::LoadRegions(), and sf2::InstrumentBase::~InstrumentBase().
1.5.2