MuseScore  3.4
Music composition and notation
Classes | Namespaces | Macros | Enumerations
sfont.h File Reference
#include "config.h"
#include "fluid.h"
Include dependency graph for sfont.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FluidS::SFVersion
 
class  FluidS::SFont
 
class  FluidS::Sample
 
class  FluidS::Zone
 
class  FluidS::Instrument
 
class  FluidS::Preset
 
struct  FluidS::SFChunk
 
struct  FluidS::SFMod
 
union  FluidS::SFGenAmount
 
struct  FluidS::SFGen
 
struct  FluidS::SFPhdr
 
struct  FluidS::SFBag
 
struct  FluidS::SFIhdr
 

Namespaces

 FluidS
 

Macros

#define Gen_MaxValid   Gen_Dummy - 1 /* maximum valid generator */
 
#define CHNKIDSTR(id)   &idlist[(id - 1) * 4]
 
#define SFPHDRSIZE   38
 
#define SFBAGSIZE   4
 
#define SFMODSIZE   10
 
#define SFGENSIZE   4
 
#define SFIHDRSIZE   22
 
#define SFSHDRSIZE   46
 
#define GUINT16_SWAP_LE_BE_CONSTANT(val)
 
#define GUINT32_SWAP_LE_BE_CONSTANT(val)
 
#define GUINT16_SWAP_LE_BE(val)   (GUINT16_SWAP_LE_BE_CONSTANT (val))
 
#define GUINT32_SWAP_LE_BE(val)   (GUINT32_SWAP_LE_BE_CONSTANT (val))
 
#define GINT16_TO_LE(val)   ((signed short) (val))
 
#define GUINT16_TO_LE(val)   ((unsigned short) (val))
 
#define GINT16_TO_BE(val)   ((signed short) GUINT16_SWAP_LE_BE (val))
 
#define GUINT16_TO_BE(val)   (GUINT16_SWAP_LE_BE (val))
 
#define GINT32_TO_LE(val)   ((signed int) (val))
 
#define GUINT32_TO_LE(val)   ((unsigned int) (val))
 
#define GINT32_TO_BE(val)   ((signed int) GUINT32_SWAP_LE_BE (val))
 
#define GUINT32_TO_BE(val)   (GUINT32_SWAP_LE_BE (val))
 
#define GINT16_FROM_LE(val)   (GINT16_TO_LE (val))
 
#define GUINT16_FROM_LE(val)   (GUINT16_TO_LE (val))
 
#define GINT16_FROM_BE(val)   (GINT16_TO_BE (val))
 
#define GUINT16_FROM_BE(val)   (GUINT16_TO_BE (val))
 
#define GINT32_FROM_LE(val)   (GINT32_TO_LE (val))
 
#define GUINT32_FROM_LE(val)   (GUINT32_TO_LE (val))
 
#define GINT32_FROM_BE(val)   (GINT32_TO_BE (val))
 
#define GUINT32_FROM_BE(val)   (GUINT32_TO_BE (val))
 

Enumerations

enum  {
  FluidS::UNKN_ID, FluidS::RIFF_ID, FluidS::LIST_ID, FluidS::SFBK_ID,
  FluidS::INFO_ID, FluidS::SDTA_ID, FluidS::PDTA_ID, FluidS::IFIL_ID,
  FluidS::ISNG_ID, FluidS::INAM_ID, FluidS::IROM_ID, FluidS::IVER_ID,
  FluidS::ICRD_ID, FluidS::IENG_ID, FluidS::IPRD_ID, FluidS::ICOP_ID,
  FluidS::ICMT_ID, FluidS::ISFT_ID, FluidS::SNAM_ID, FluidS::SMPL_ID,
  FluidS::PHDR_ID, FluidS::PBAG_ID, FluidS::PMOD_ID, FluidS::PGEN_ID,
  FluidS::IHDR_ID, FluidS::IBAG_ID, FluidS::IMOD_ID, FluidS::IGEN_ID,
  FluidS::SHDR_ID
}
 
enum  FluidS::Gen_Type {
  FluidS::Gen_StartAddrOfs, FluidS::Gen_EndAddrOfs, FluidS::Gen_StartLoopAddrOfs, FluidS::Gen_EndLoopAddrOfs,
  FluidS::Gen_StartAddrCoarseOfs, FluidS::Gen_ModLFO2Pitch, FluidS::Gen_VibLFO2Pitch, FluidS::Gen_ModEnv2Pitch,
  FluidS::Gen_FilterFc, FluidS::Gen_FilterQ, FluidS::Gen_ModLFO2FilterFc, FluidS::Gen_ModEnv2FilterFc,
  FluidS::Gen_EndAddrCoarseOfs, FluidS::Gen_ModLFO2Vol, FluidS::Gen_Unused1, FluidS::Gen_ChorusSend,
  FluidS::Gen_ReverbSend, FluidS::Gen_Pan, FluidS::Gen_Unused2, FluidS::Gen_Unused3,
  FluidS::Gen_Unused4, FluidS::Gen_ModLFODelay, FluidS::Gen_ModLFOFreq, FluidS::Gen_VibLFODelay,
  FluidS::Gen_VibLFOFreq, FluidS::Gen_ModEnvDelay, FluidS::Gen_ModEnvAttack, FluidS::Gen_ModEnvHold,
  FluidS::Gen_ModEnvDecay, FluidS::Gen_ModEnvSustain, FluidS::Gen_ModEnvRelease, FluidS::Gen_Key2ModEnvHold,
  FluidS::Gen_Key2ModEnvDecay, FluidS::Gen_VolEnvDelay, FluidS::Gen_VolEnvAttack, FluidS::Gen_VolEnvHold,
  FluidS::Gen_VolEnvDecay, FluidS::Gen_VolEnvSustain, FluidS::Gen_VolEnvRelease, FluidS::Gen_Key2VolEnvHold,
  FluidS::Gen_Key2VolEnvDecay, FluidS::Gen_Instrument, FluidS::Gen_Reserved1, FluidS::Gen_KeyRange,
  FluidS::Gen_VelRange, FluidS::Gen_StartLoopAddrCoarseOfs, FluidS::Gen_Keynum, FluidS::Gen_Velocity,
  FluidS::Gen_Attenuation, FluidS::Gen_Reserved2, FluidS::Gen_EndLoopAddrCoarseOfs, FluidS::Gen_CoarseTune,
  FluidS::Gen_FineTune, FluidS::Gen_SampleId, FluidS::Gen_SampleModes, FluidS::Gen_Reserved3,
  FluidS::Gen_ScaleTune, FluidS::Gen_ExclusiveClass, FluidS::Gen_OverrideRootKey, FluidS::Gen_Dummy
}
 
enum  FluidS::Gen_Unit {
  FluidS::None, FluidS::Unit_Smpls, FluidS::Unit_32kSmpls, FluidS::Unit_Cent,
  FluidS::Unit_HzCent, FluidS::Unit_TCent, FluidS::Unit_cB, FluidS::Unit_Percent,
  FluidS::Unit_Semitone, FluidS::Unit_Range
}
 

Macro Definition Documentation

◆ CHNKIDSTR

#define CHNKIDSTR (   id)    &idlist[(id - 1) * 4]

◆ Gen_MaxValid

#define Gen_MaxValid   Gen_Dummy - 1 /* maximum valid generator */

◆ GINT16_FROM_BE

#define GINT16_FROM_BE (   val)    (GINT16_TO_BE (val))

◆ GINT16_FROM_LE

#define GINT16_FROM_LE (   val)    (GINT16_TO_LE (val))

◆ GINT16_TO_BE

#define GINT16_TO_BE (   val)    ((signed short) GUINT16_SWAP_LE_BE (val))

◆ GINT16_TO_LE

#define GINT16_TO_LE (   val)    ((signed short) (val))

◆ GINT32_FROM_BE

#define GINT32_FROM_BE (   val)    (GINT32_TO_BE (val))

◆ GINT32_FROM_LE

#define GINT32_FROM_LE (   val)    (GINT32_TO_LE (val))

◆ GINT32_TO_BE

#define GINT32_TO_BE (   val)    ((signed int) GUINT32_SWAP_LE_BE (val))

◆ GINT32_TO_LE

#define GINT32_TO_LE (   val)    ((signed int) (val))

◆ GUINT16_FROM_BE

#define GUINT16_FROM_BE (   val)    (GUINT16_TO_BE (val))

◆ GUINT16_FROM_LE

#define GUINT16_FROM_LE (   val)    (GUINT16_TO_LE (val))

◆ GUINT16_SWAP_LE_BE

#define GUINT16_SWAP_LE_BE (   val)    (GUINT16_SWAP_LE_BE_CONSTANT (val))

◆ GUINT16_SWAP_LE_BE_CONSTANT

#define GUINT16_SWAP_LE_BE_CONSTANT (   val)
Value:
((unsigned short) ( \
(((unsigned short) (val) & (unsigned short) 0x00ffU) << 8) | \
(((unsigned short) (val) & (unsigned short) 0xff00U) >> 8)))

◆ GUINT16_TO_BE

#define GUINT16_TO_BE (   val)    (GUINT16_SWAP_LE_BE (val))

◆ GUINT16_TO_LE

#define GUINT16_TO_LE (   val)    ((unsigned short) (val))

◆ GUINT32_FROM_BE

#define GUINT32_FROM_BE (   val)    (GUINT32_TO_BE (val))

◆ GUINT32_FROM_LE

#define GUINT32_FROM_LE (   val)    (GUINT32_TO_LE (val))

◆ GUINT32_SWAP_LE_BE

#define GUINT32_SWAP_LE_BE (   val)    (GUINT32_SWAP_LE_BE_CONSTANT (val))

◆ GUINT32_SWAP_LE_BE_CONSTANT

#define GUINT32_SWAP_LE_BE_CONSTANT (   val)
Value:
((unsigned int) ( \
(((unsigned int) (val) & (unsigned int) 0x000000ffU) << 24) | \
(((unsigned int) (val) & (unsigned int) 0x0000ff00U) << 8) | \
(((unsigned int) (val) & (unsigned int) 0x00ff0000U) >> 8) | \
(((unsigned int) (val) & (unsigned int) 0xff000000U) >> 24)))

◆ GUINT32_TO_BE

#define GUINT32_TO_BE (   val)    (GUINT32_SWAP_LE_BE (val))

◆ GUINT32_TO_LE

#define GUINT32_TO_LE (   val)    ((unsigned int) (val))

◆ SFBAGSIZE

#define SFBAGSIZE   4

◆ SFGENSIZE

#define SFGENSIZE   4

◆ SFIHDRSIZE

#define SFIHDRSIZE   22

◆ SFMODSIZE

#define SFMODSIZE   10

◆ SFPHDRSIZE

#define SFPHDRSIZE   38

◆ SFSHDRSIZE

#define SFSHDRSIZE   46