sf2 Namespace Reference

SoundFont specific classes and definitions. More...


Classes

struct  _PresetBag
struct  _ModList
struct  _RangesType
union  _GenAmountType
struct  _GenList
struct  _InstBag
class  Modulator
class  ModulatorItem
class  Exception
class  Version
class  Info
class  Sample
class  Region
 Instrument zone. More...
class  InstrumentBase
class  Query
class  Instrument
class  Preset
class  File

Typedefs

typedef sf2::_PresetBag PresetBag
typedef uint16_t SFModulator
typedef uint16_t SFGenerator
typedef uint16_t SFTransform
typedef sf2::_ModList ModList
typedef sf2::_RangesType RangesType
typedef sf2::_GenAmountType GenAmountType
typedef sf2::_GenList GenList
typedef 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, RELEASEMODENV, 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

String libraryName ()
 Returns the name of this C++ library.
String libraryVersion ()
 Returns version of this C++ library.
double ToSeconds (int Timecents)
double ToPermilles (int Centibels)
double ToHz (int cents)
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).


Detailed Description

SoundFont specific classes and definitions.

Typedef Documentation

typedef union sf2::_GenAmountType sf2::GenAmountType

typedef struct sf2::_GenList sf2::GenList

typedef struct sf2::_InstBag sf2::InstBag

typedef struct sf2::_ModList sf2::ModList

typedef struct sf2::_PresetBag sf2::PresetBag

typedef struct sf2::_RangesType sf2::RangesType

typedef uint16_t sf2::SFGenerator

Definition at line 72 of file SF.h.

typedef uint16_t sf2::SFModulator

Definition at line 71 of file SF.h.

typedef uint16_t sf2::SFTransform

Definition at line 73 of file SF.h.

typedef std::string sf2::String

Definition at line 222 of file SF.h.


Enumeration Type Documentation

enum sf2::SFGeneratorType

Enumerator:
START_ADDRS_OFFSET 
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 
RELEASEMODENV 
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 

Definition at line 109 of file SF.h.


Function Documentation

RIFF::Chunk* sf2::GetMandatoryChunk ( RIFF::List list,
uint32_t  chunkId 
)

Definition at line 55 of file SF.cpp.

References RIFF::List::GetSubChunk().

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

String sf2::libraryName (  ) 

Returns the name of this C++ library.

Definition at line 1401 of file SF.cpp.

String sf2::libraryVersion (  ) 

Returns version of this C++ library.

Definition at line 1408 of file SF.cpp.

void sf2::LoadString ( RIFF::Chunk ck,
std::string &  s,
int  strLength 
)

Definition at line 61 of file SF.cpp.

References RIFF::Chunk::ReadInt8().

Referenced by gig::Group::Group(), sf2::Instrument::Instrument(), sf2::Preset::Preset(), and sf2::Sample::Sample().

double sf2::ToHz ( int  cents  ) 

Definition at line 49 of file SF.cpp.

References _1200TH_ROOT_OF_2.

Referenced by sf2::Region::GetFreqModLfo(), and sf2::Region::GetFreqVibLfo().

double sf2::ToPermilles ( int  Centibels  ) 

Definition at line 42 of file SF.cpp.

References _200TH_ROOT_OF_10.

Referenced by sf2::Region::GetEG1Sustain(), and sf2::Region::GetModLfoToVolume().

double sf2::ToSeconds ( int  Timecents  ) 

Definition at line 35 of file SF.cpp.

References _1200TH_ROOT_OF_2.

Referenced by sf2::Region::GetDelayModLfo(), sf2::Region::GetDelayVibLfo(), sf2::Region::GetEG1Attack(), sf2::Region::GetEG1Decay(), sf2::Region::GetEG1Hold(), sf2::Region::GetEG1PreAttackDelay(), sf2::Region::GetEG1Release(), sf2::Region::GetEG2Attack(), sf2::Region::GetEG2Decay(), sf2::Region::GetEG2Hold(), sf2::Region::GetEG2PreAttackDelay(), and sf2::Region::GetEG2Release().

void sf2::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).

Definition at line 78 of file SF.cpp.

References RIFF::Chunk::GetChunkID(), and RIFF::Chunk::GetSize().

Referenced by sf2::Version::Version().


Generated on Sun May 1 03:22:48 2011 for libgig by  doxygen 1.5.2