libgig
3.3.0.svn3
|
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 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 |
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::Chunk * | GetMandatoryChunk (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) |
SoundFont specific classes and definitions.
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 |
typedef uint16_t sf2::SFModulator |
typedef uint16_t sf2::SFTransform |
typedef std::string sf2::String |
enum sf2::SFGeneratorType |
int sf2::CheckRange | ( | std::string | genName, |
int | min, | ||
int | max, | ||
int & | gen | ||
) |
Definition at line 298 of file SF.cpp.
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::GetEG1Sustain(), sf2::Region::GetEG2Attack(), sf2::Region::GetEG2Decay(), sf2::Region::GetEG2Hold(), sf2::Region::GetEG2PreAttackDelay(), sf2::Region::GetEG2Release(), sf2::Region::GetEG2Sustain(), sf2::Region::GetFreqModLfo(), sf2::Region::GetFreqVibLfo(), sf2::Region::GetInitialFilterFc(), sf2::Region::GetInitialFilterQ(), sf2::Region::GetModEnvToFilterFc(), sf2::Region::GetModEnvToPitch(), sf2::Region::GetModLfoToFilterFc(), sf2::Region::GetModLfoToPitch(), sf2::Region::GetModLfoToVolume(), and sf2::Region::GetVibLfoToPitch().
RIFF::Chunk* sf2::GetMandatoryChunk | ( | RIFF::List * | list, |
uint32_t | chunkId | ||
) |
Definition at line 54 of file SF.cpp.
References RIFF::List::GetSubChunk().
Referenced by sf2::File::File(), and sf2::Info::Info().
String sf2::libraryName | ( | ) |
String sf2::libraryVersion | ( | ) |
void sf2::LoadString | ( | RIFF::Chunk * | ck, |
std::string & | s, | ||
int | strLength | ||
) |
Definition at line 60 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 48 of file SF.cpp.
References _1200TH_ROOT_OF_2.
Referenced by sf2::Region::GetFreqModLfo(), and sf2::Region::GetFreqVibLfo().
double sf2::ToRatio | ( | int | Centibels | ) |
Definition at line 42 of file SF.cpp.
References _200TH_ROOT_OF_10.
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 77 of file SF.cpp.
References RIFF::Chunk::GetChunkID(), and RIFF::Chunk::GetSize().
Referenced by sf2::Version::Version().