hydrogen 1.2.3
Adsr.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  H2Core
 

Functions

double applyExponential (const float fExponent, const float fXOffset, const float fYOffset, const float fScale, float *__restrict__ pA, float *__restrict__ pB, float fQ, int nFrames, int nFramesTotal, float fStep, float *__restrict__ pfADSRVal)
 Apply an exponential envelope to a stereo pair of sample fragments.
 

Variables

const float fAttackExponent = 0.038515241777294117
 
const float fAttackInit = 1.039835771720117430
 
const float fDecayExponent = 0.044796211247505179
 
const float fDecayInit = 1.046934808452493870
 
const float fDecayYOffset = -0.046934663351557632