libgig  4.2.0.svn17
sf2 Namespace Reference

SoundFont specific classes and definitions. More...

Classes

class  Region
 Instrument zone. More...
 

Typedefs

typedef struct sf2::_PresetBag PresetBag
 
typedef uint16_t SFModulator
 
typedef uint16_t SFGenerator
 
typedef uint16_t SFTransform
 
typedef struct sf2::_ModList ModList
 
typedef struct sf2::_RangesType RangesType
 
typedef union sf2::_GenAmountType GenAmountType
 
typedef struct sf2::_GenList GenList
 
typedef struct sf2::_InstBag InstBag
 
typedef std::string String
 

Enumerations

enum  SFGeneratorType {
  START_ADDRS_OFFSET = 0, END_ADDRS_OFFSET, STARTLOOP_ADDRS_OFFSET, ENDLOOP_ADDRS_OFFSET,
  START_ADDRS_COARSE_OFFSET, MOD_LFO_TO_PITCH, VIB_LFO_TO_PITCH, MOD_ENV_TO_PITCH,
  INITIAL_FILTER_FC, INITIAL_FILTER_Q, MOD_LFO_TO_FILTER_FC, MOD_ENV_TO_FILTER_FC,
  END_ADDRS_COARSE_OFFSET, MOD_LFO_TO_VOLUME, UNUSED1, CHORUS_EFFECTS_SEND,
  REVERB_EFFECTS_SEND, PAN, UNUSED2, UNUSED3,
  UNUSED4, DELAY_MOD_LFO, FREQ_MOD_LFO, DELAY_VIB_LFO,
  FREQ_VIB_LFO, DELAY_MOD_ENV, ATTACK_MOD_ENV, HOLD_MOD_ENV,
  DECAY_MOD_ENV, SUSTAIN_MOD_ENV, RELEASE_MOD_ENV, KEYNUM_TO_MOD_ENV_HOLD,
  KEYNUM_TO_MOD_ENV_DECAY, DELAY_VOL_ENV, ATTACK_VOL_ENV, HOLD_VOL_ENV,
  DECAY_VOL_ENV, SUSTAIN_VOL_ENV, RELEASE_VOL_ENV, KEYNUM_TO_VOL_ENV_HOLD,
  KEYNUM_TO_VOL_ENV_DECAY, INSTRUMENT, RESERVED1, KEY_RANGE,
  VEL_RANGE, STARTLOOP_ADDRS_COARSE_OFFSET, KEYNUM, VELOCITY,
  INITIAL_ATTENUATION, RESERVED2, ENDLOOP_ADDRS_COARSE_OFFSET, COARSE_TUNE,
  FINE_TUNE, SAMPLE_ID, SAMPLE_MODES, RESERVED3,
  SCALE_TUNING, EXCLUSIVE_CLASS, OVERRIDING_ROOT_KEY, UNUSED5,
  END_OPER
}
 

Functions

double ToSeconds (int Timecents)
 
double ToRatio (int Centibels)
 
double ToHz (int cents)
 
String libraryName ()
 Returns the name of this C++ library.
 
String libraryVersion ()
 Returns version of this C++ library.
 
RIFF::ChunkGetMandatoryChunk (RIFF::List *list, uint32_t chunkId)
 
void LoadString (RIFF::Chunk *ck, std::string &s, int strLength)
 
void VerifySize (RIFF::Chunk *ck, int size)
 Throws an error if the chunk is NULL or the chunk data size is less than size (in bytes).
 
int CheckRange (std::string genName, int min, int max, int &gen)
 
template<bool CLEAR>
unsigned long ReadSample (Sample *pSample, void *pBuffer, unsigned long SampleCount, Sample::buffer_t *tempBuffer=NULL)
 

Detailed Description

SoundFont specific classes and definitions.