SynthLab SDK
SynthLab::EGParameters Struct Reference

Custom parameter structure for the any of the synth EGs. This structure is designed to take care of both analog EG and the DX EG requirements. Notable members: More...

#include <synthlabparams.h>

Public Attributes

int32_t egContourIndex = 0
 iundex from GUI control
 
bool resetToZero = false
 reset to zero (see book)
 
bool legatoMode = false
 legato
 
bool velocityToAttackScaling = false
 one of two EG modulations
 
bool noteNumberToDecayScaling = false
 one of two EG modulations
 
double attackTime_mSec = 250.0
 from GUI control
 
double decayTime_mSec = 1000.0
 from GUI control
 
double slopeTime_mSec = 0.0
 from GUI control
 
double releaseTime_mSec = 3000.0
 from GUI control
 
double startLevel = 0.0
 from GUI control
 
double endLevel = 0.0
 from GUI control
 
double decayLevel = 0.707
 from GUI control
 
double sustainLevel = 0.707
 from GUI control
 
double curvature = 0.0
 from GUI control
 
double modKnobValue [4] = { 0.5, 0.0, 0.0, 0.0 }
 mod knobs
 
uint32_t moduleIndex = 0
 

Detailed Description

Custom parameter structure for the any of the synth EGs. This structure is designed to take care of both analog EG and the DX EG requirements. Notable members:

  • egContourIndex the selected contour from a GUI control that the user toggles
  • modKnobValue[4] the four mod knob values on the range [0, 1]
Author
Will Pirkle http://www.willpirkle.com
Remarks
This object is included in Designing Software Synthesizer Plugins in C++ 2nd Ed. by Will Pirkle
Version
Revision : 1.0
Date
Date : 2021 / 05 / 02

The documentation for this struct was generated from the following file: