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

◆ Instrument()

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

◆ ~Instrument()

sf2::Instrument::~Instrument ( )

Definition at line 769 of file SF.cpp.

Member Function Documentation

◆ CreateRegion()

◆ DeleteRegion()

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

Definition at line 831 of file SF.cpp.

References sf2::InstrumentBase::regions.

◆ GetFile()

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

Definition at line 456 of file SF.h.

References sf2::InstrumentBase::pFile.

◆ GetName()

String sf2::InstrumentBase::GetName ( )
inlineinherited

Definition at line 457 of file SF.h.

References sf2::InstrumentBase::Name.

◆ GetRegion()

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

◆ GetRegionCount()

int sf2::InstrumentBase::GetRegionCount ( )
inherited

◆ LoadRegions()

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

Member Data Documentation

◆ InstBagNdx

uint16_t sf2::Instrument::InstBagNdx

Definition at line 487 of file SF.h.

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

◆ Name

String sf2::InstrumentBase::Name
inherited

Definition at line 450 of file SF.h.

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

◆ pFile

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

◆ pGlobalRegion

◆ regions

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

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