libgig  3.3.0.svn3
SF.cpp File Reference
#include "RIFF.h"
#include "SF.h"
#include "helper.h"
#include <math.h>

Go to the source code of this file.

Namespaces

namespace  sf2
 SoundFont specific classes and definitions.
 

Macros

#define _1200TH_ROOT_OF_2   1.000577789506555
 
#define _200TH_ROOT_OF_10   1.011579454259899
 

Functions

double sf2::ToSeconds (int Timecents)
 
double sf2::ToRatio (int Centibels)
 
double sf2::ToHz (int cents)
 
RIFF::Chunksf2::GetMandatoryChunk (RIFF::List *list, uint32_t chunkId)
 
void sf2::LoadString (RIFF::Chunk *ck, std::string &s, int strLength)
 
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).
 
int sf2::CheckRange (std::string genName, int min, int max, int &gen)
 
String sf2::libraryName ()
 Returns the name of this C++ library.
 
String sf2::libraryVersion ()
 Returns version of this C++ library.
 

Macro Definition Documentation

#define _1200TH_ROOT_OF_2   1.000577789506555

Definition at line 31 of file SF.cpp.

Referenced by sf2::ToHz(), and sf2::ToSeconds().

#define _200TH_ROOT_OF_10   1.011579454259899

Definition at line 32 of file SF.cpp.

Referenced by sf2::ToRatio().