1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2005 Christian Schoenebeck * |
* Copyright (C) 2005 - 2017 Christian Schoenebeck * |
4 |
* * |
* * |
5 |
* This library is free software; you can redistribute it and/or modify * |
* This library is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
82 |
LFOBase(float Max) { |
LFOBase(float Max) { |
83 |
this->ExtController = 0; |
this->ExtController = 0; |
84 |
this->Max = Max; |
this->Max = Max; |
85 |
|
this->InternalDepth = 0; |
86 |
|
this->Frequency = 20.f; |
87 |
|
this->ExtControlValue = 0; |
88 |
|
this->ExtControlDepthCoeff = 0; |
89 |
|
this->ScriptDepthFactor = 1.f; |
90 |
|
this->ScriptFrequencyFactor = 1.f; |
91 |
} |
} |
92 |
|
|
93 |
virtual ~LFOBase() { |
virtual ~LFOBase() { |
107 |
* |
* |
108 |
* @param ExtControlValue - new external controller value |
* @param ExtControlValue - new external controller value |
109 |
*/ |
*/ |
110 |
//abstract inline void update(const uint16_t& ExtControlValue); //< what a pity that abstract inliners are not supported by C++98 (probably by upcoming C++0x?) |
//abstract inline void updateByMIDICtrlValue(const uint16_t& ExtControlValue); //< what a pity that abstract inliners are not supported by C++98 (probably by upcoming C++0x?) |
111 |
|
|
112 |
/** |
/** |
113 |
* Will be called by the voice when the key / voice was triggered. |
* Will be called by the voice when the key / voice was triggered. |
128 |
protected: |
protected: |
129 |
float Max; |
float Max; |
130 |
float InternalDepth; |
float InternalDepth; |
131 |
float ExtControlDepthCoeff; |
float Frequency; ///< Internal base frequency for this LFO. |
132 |
|
float ExtControlValue; ///< The current external MIDI controller value (0-127). |
133 |
|
float ExtControlDepthCoeff; ///< A usually constant factor used to convert a new MIDI controller value from range 0-127 to the required internal implementation dependent value range. |
134 |
|
float ScriptDepthFactor; ///< Usually neutral (1.0), only altered by external RT instrument script functions. |
135 |
|
float ScriptFrequencyFactor; ///< Usually neutral (1.0), only altered by external RT instrument script functions. |
136 |
}; |
}; |
137 |
|
|
138 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |