libgig  4.0.0
sf2::Instrument Class Reference

#include <SF.h>

Inheritance diagram for sf2::Instrument:
sf2::InstrumentBase

Public Member Functions

 Instrument (sf2::File *pFile, RIFF::Chunk *ck)
 
 ~Instrument ()
 
void DeleteRegion (Region *pRegion)
 
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 InstBagNdx
 
String Name
 
RegionpGlobalRegion
 

Protected Attributes

std::vector< Region * > regions
 
sf2::FilepFile
 

Detailed Description

Definition at line 480 of file SF.h.

Constructor & Destructor Documentation

sf2::Instrument::Instrument ( sf2::File pFile,
RIFF::Chunk ck 
)
sf2::Instrument::~Instrument ( )

Definition at line 769 of file SF.cpp.

Member Function Documentation

void sf2::Instrument::DeleteRegion ( Region pRegion)

Definition at line 831 of file SF.cpp.

References sf2::InstrumentBase::regions.

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

Definition at line 456 of file SF.h.

String sf2::InstrumentBase::GetName ( )
inlineinherited

Definition at line 457 of file SF.h.

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().

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().

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

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

Definition at line 843 of file SF.cpp.

References CreateRegion(), sf2::File::InstBags, sf2::File::InstGenLists, sf2::File::InstModLists, sf2::InstrumentBase::pGlobalRegion, sf2::Region::pSample, and sf2::InstrumentBase::regions.

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

Member Data Documentation

uint16_t sf2::Instrument::InstBagNdx

Definition at line 487 of file SF.h.

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

String sf2::InstrumentBase::Name
inherited

Definition at line 450 of file SF.h.

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

sf2::File* sf2::InstrumentBase::pFile
protectedinherited

Definition at line 464 of file SF.h.

Referenced by Instrument().

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

Definition at line 463 of file SF.h.

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


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