libgig  4.0.0
sf2::Preset Class Reference

#include <SF.h>

Inheritance diagram for sf2::Preset:
sf2::InstrumentBase

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. More...
 
RegionCreateRegion ()
 
sf2::FileGetFile ()
 
String GetName ()
 
int GetRegionCount ()
 
RegionGetRegion (int idx)
 

Public Attributes

uint16_t PresetNum
 
uint16_t Bank
 
uint32_t Library
 
uint32_t Genre
 
uint32_t Morphology
 
sf2::FilepFile
 
uint16_t PresetBagNdx
 
String Name
 
RegionpGlobalRegion
 

Protected Attributes

std::vector< Region * > regions
 

Detailed Description

Definition at line 497 of file SF.h.

Constructor & Destructor Documentation

§ Preset()

sf2::Preset::Preset ( sf2::File pFile,
RIFF::Chunk ck 
)

§ ~Preset()

sf2::Preset::~Preset ( )

Definition at line 894 of file SF.cpp.

Member Function Documentation

§ CreateRegion()

§ GetFile()

sf2::File* sf2::InstrumentBase::GetFile ( )
inlineinherited

Definition at line 456 of file SF.h.

§ GetName()

String sf2::InstrumentBase::GetName ( )
inlineinherited

Definition at line 457 of file SF.h.

§ GetRegion()

Region * sf2::InstrumentBase::GetRegion ( int  idx)
inherited

Definition at line 740 of file SF.cpp.

Referenced by sf2::File::DeleteInstrument(), sf2::File::DeleteSample(), and sf2::Query::next().

§ GetRegionCount()

int sf2::InstrumentBase::GetRegionCount ( )
inherited

Definition at line 736 of file SF.cpp.

Referenced by sf2::File::DeleteInstrument(), sf2::File::DeleteSample(), and sf2::Query::next().

§ LoadRegions()

void sf2::Preset::LoadRegions ( int  idx1,
int  idx2 
)

Load all regions (zones, bags) in the range idx1 - idx2.

Definition at line 941 of file SF.cpp.

References CreateRegion(), sf2::InstrumentBase::pGlobalRegion, sf2::Region::pInstrument, sf2::File::PresetBags, sf2::File::PresetGenLists, and sf2::InstrumentBase::regions.

Referenced by sf2::File::File().

Member Data Documentation

§ Bank

uint16_t sf2::Preset::Bank

Definition at line 500 of file SF.h.

Referenced by Preset().

§ Genre

uint32_t sf2::Preset::Genre

Definition at line 502 of file SF.h.

Referenced by Preset().

§ Library

uint32_t sf2::Preset::Library

Definition at line 501 of file SF.h.

Referenced by Preset().

§ Morphology

uint32_t sf2::Preset::Morphology

Definition at line 503 of file SF.h.

Referenced by Preset().

§ Name

String sf2::InstrumentBase::Name
inherited

Definition at line 450 of file SF.h.

Referenced by sf2::Instrument::Instrument(), and Preset().

§ pFile

sf2::File* sf2::Preset::pFile

Definition at line 509 of file SF.h.

Referenced by Preset().

§ pGlobalRegion

Region* sf2::InstrumentBase::pGlobalRegion
inherited

§ PresetBagNdx

uint16_t sf2::Preset::PresetBagNdx

Definition at line 510 of file SF.h.

Referenced by sf2::File::File(), and Preset().

§ PresetNum

uint16_t sf2::Preset::PresetNum

Definition at line 499 of file SF.h.

Referenced by Preset().

§ regions

std::vector<Region*> sf2::InstrumentBase::regions
protectedinherited

Definition at line 463 of file SF.h.

Referenced by sf2::Instrument::DeleteRegion(), sf2::Instrument::LoadRegions(), and LoadRegions().


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