MuseScore  3.4
Music composition and notation
Namespaces | Macros | Functions
voice.cpp File Reference
#include "conv.h"
#include "fluid.h"
#include "sfont.h"
#include "gen.h"
#include "voice.h"
Include dependency graph for voice.cpp:

Namespaces

 FluidS
 

Macros

#define FLUID_SAMPLESANITY_CHECK   (1 << 0)
 
#define FLUID_SAMPLESANITY_STARTUP   (1 << 1)
 
#define fluid_clip(_val, _min, _max)   { (_val) = ((_val) < (_min))? (_min) : (((_val) > (_max))? (_max) : (_val)); }
 
#define FLUID_MAX_AUDIBLE_FILTER_FC   19000.0f
 
#define FLUID_MIN_AUDIBLE_FILTER_Q   1.2f
 
#define FLUID_NOISE_FLOOR   0.00003f
 
#define FLUID_MIN_LOOP_SIZE   2
 
#define FLUID_MIN_LOOP_PAD   0
 
#define FLUID_MIN_VOLENVRELEASE   -7200.0f /* ~16ms */
 
#define FILTER_TRANSITION_SAMPLES   64
 
#define NUM_FRAMES_DELAY(_v)   (unsigned int) (_fluid->sample_rate * fluid_tc2sec_delay(_v))
 
#define NUM_FRAMES_ATTACK(_v)   (unsigned int) (_fluid->sample_rate * fluid_tc2sec_attack(_v))
 
#define NUM_FRAMES_RELEASE(_v)   (unsigned int) (_fluid->sample_rate * fluid_tc2sec_release(_v))
 

Functions

float FluidS::triangle (int dur, int pos)
 
int FluidS::samplesToNextTurningPoint (int dur, int pos)
 

Macro Definition Documentation

◆ FILTER_TRANSITION_SAMPLES

#define FILTER_TRANSITION_SAMPLES   64

◆ fluid_clip

#define fluid_clip (   _val,
  _min,
  _max 
)    { (_val) = ((_val) < (_min))? (_min) : (((_val) > (_max))? (_max) : (_val)); }

◆ FLUID_MAX_AUDIBLE_FILTER_FC

#define FLUID_MAX_AUDIBLE_FILTER_FC   19000.0f

◆ FLUID_MIN_AUDIBLE_FILTER_Q

#define FLUID_MIN_AUDIBLE_FILTER_Q   1.2f

◆ FLUID_MIN_LOOP_PAD

#define FLUID_MIN_LOOP_PAD   0

◆ FLUID_MIN_LOOP_SIZE

#define FLUID_MIN_LOOP_SIZE   2

◆ FLUID_MIN_VOLENVRELEASE

#define FLUID_MIN_VOLENVRELEASE   -7200.0f /* ~16ms */

◆ FLUID_NOISE_FLOOR

#define FLUID_NOISE_FLOOR   0.00003f

◆ FLUID_SAMPLESANITY_CHECK

#define FLUID_SAMPLESANITY_CHECK   (1 << 0)

◆ FLUID_SAMPLESANITY_STARTUP

#define FLUID_SAMPLESANITY_STARTUP   (1 << 1)

◆ NUM_FRAMES_ATTACK

#define NUM_FRAMES_ATTACK (   _v)    (unsigned int) (_fluid->sample_rate * fluid_tc2sec_attack(_v))

◆ NUM_FRAMES_DELAY

#define NUM_FRAMES_DELAY (   _v)    (unsigned int) (_fluid->sample_rate * fluid_tc2sec_delay(_v))

◆ NUM_FRAMES_RELEASE

#define NUM_FRAMES_RELEASE (   _v)    (unsigned int) (_fluid->sample_rate * fluid_tc2sec_release(_v))