12 |
|
|
13 |
#include "../../common/Pool.h" |
#include "../../common/Pool.h" |
14 |
#include "Event.h" |
#include "Event.h" |
15 |
|
#include "Fade.h" |
16 |
|
|
17 |
#define DEFAULT_NOTE_VOLUME_TIME_S 0.013f /* 13ms */ |
#define DEFAULT_NOTE_VOLUME_TIME_S 0.013f /* 13ms */ |
18 |
#define DEFAULT_NOTE_PITCH_TIME_S 0.013f /* 13ms */ |
#define DEFAULT_NOTE_PITCH_TIME_S 0.013f /* 13ms */ |
50 |
float AmpLFOFreq; ///< between 0.0 and 1.0 |
float AmpLFOFreq; ///< between 0.0 and 1.0 |
51 |
float PitchLFODepth; ///< between 0.0 and 1.0 |
float PitchLFODepth; ///< between 0.0 and 1.0 |
52 |
float PitchLFOFreq; ///< between 0.0 and 1.0 |
float PitchLFOFreq; ///< between 0.0 and 1.0 |
53 |
|
fade_curve_t VolumeCurve; |
54 |
|
fade_curve_t PitchCurve; |
55 |
} Override; |
} Override; |
56 |
/// Sampler format specific informations and variables. |
/// Sampler format specific informations and variables. |
57 |
union _Format { |
union _Format { |
79 |
Override.AmpLFOFreq = 1.f; |
Override.AmpLFOFreq = 1.f; |
80 |
Override.PitchLFODepth = 1.f; |
Override.PitchLFODepth = 1.f; |
81 |
Override.PitchLFOFreq = 1.f; |
Override.PitchLFOFreq = 1.f; |
82 |
|
Override.VolumeCurve = DEFAULT_FADE_CURVE; |
83 |
|
Override.PitchCurve = DEFAULT_FADE_CURVE; |
84 |
|
|
85 |
Format = _Format(); |
Format = _Format(); |
86 |
|
|
156 |
Override.AmpLFOFreq = 1.f; |
Override.AmpLFOFreq = 1.f; |
157 |
Override.PitchLFODepth = 1.f; |
Override.PitchLFODepth = 1.f; |
158 |
Override.PitchLFOFreq = 1.f; |
Override.PitchLFOFreq = 1.f; |
159 |
|
Override.VolumeCurve = DEFAULT_FADE_CURVE; |
160 |
|
Override.PitchCurve = DEFAULT_FADE_CURVE; |
161 |
Format = _Format(); |
Format = _Format(); |
162 |
userPar[0] = 0; |
userPar[0] = 0; |
163 |
userPar[1] = 0; |
userPar[1] = 0; |