99 |
bool on_draw(const Cairo::RefPtr<Cairo::Context>& cr); |
bool on_draw(const Cairo::RefPtr<Cairo::Context>& cr); |
100 |
#endif |
#endif |
101 |
|
|
102 |
|
virtual LinuxSampler::LFO::wave_t waveType() const = 0; |
103 |
virtual float frequency() const = 0; |
virtual float frequency() const = 0; |
104 |
|
virtual float phase() const = 0; |
105 |
virtual uint internalDepth() const = 0; |
virtual uint internalDepth() const = 0; |
106 |
virtual uint controllerDepth() const = 0; |
virtual uint controllerDepth() const = 0; |
107 |
virtual bool flipPolarity() const = 0; |
virtual bool flipPolarity() const = 0; |
115 |
|
|
116 |
class LFO1Graph : public LFOGraph { |
class LFO1Graph : public LFOGraph { |
117 |
public: |
public: |
118 |
|
LinuxSampler::LFO::wave_t waveType() const OVERRIDE { |
119 |
|
// simply assuming here libgig's and LS's enums are equally value mapped |
120 |
|
return (LinuxSampler::LFO::wave_t) dimreg->LFO1WaveForm; |
121 |
|
} |
122 |
float frequency() const OVERRIDE { return dimreg->LFO1Frequency; } |
float frequency() const OVERRIDE { return dimreg->LFO1Frequency; } |
123 |
|
float phase() const OVERRIDE { return dimreg->LFO1Phase; } |
124 |
uint internalDepth() const OVERRIDE { |
uint internalDepth() const OVERRIDE { |
125 |
const gig::lfo1_ctrl_t ctrl = dimreg->LFO1Controller; |
const gig::lfo1_ctrl_t ctrl = dimreg->LFO1Controller; |
126 |
const bool hasInternalDepth = ( |
const bool hasInternalDepth = ( |
137 |
|
|
138 |
class LFO2Graph : public LFOGraph { |
class LFO2Graph : public LFOGraph { |
139 |
public: |
public: |
140 |
|
LinuxSampler::LFO::wave_t waveType() const OVERRIDE { |
141 |
|
// simply assuming here libgig's and LS's enums are equally value mapped |
142 |
|
return (LinuxSampler::LFO::wave_t) dimreg->LFO2WaveForm; |
143 |
|
} |
144 |
float frequency() const OVERRIDE { return dimreg->LFO2Frequency; } |
float frequency() const OVERRIDE { return dimreg->LFO2Frequency; } |
145 |
|
float phase() const OVERRIDE { return dimreg->LFO2Phase; } |
146 |
uint internalDepth() const OVERRIDE { |
uint internalDepth() const OVERRIDE { |
147 |
const gig::lfo2_ctrl_t ctrl = dimreg->LFO2Controller; |
const gig::lfo2_ctrl_t ctrl = dimreg->LFO2Controller; |
148 |
const bool hasInternalDepth = ( |
const bool hasInternalDepth = ( |
159 |
|
|
160 |
class LFO3Graph : public LFOGraph { |
class LFO3Graph : public LFOGraph { |
161 |
public: |
public: |
162 |
|
LinuxSampler::LFO::wave_t waveType() const OVERRIDE { |
163 |
|
// simply assuming here libgig's and LS's enums are equally value mapped |
164 |
|
return (LinuxSampler::LFO::wave_t) dimreg->LFO3WaveForm; |
165 |
|
} |
166 |
float frequency() const OVERRIDE { return dimreg->LFO3Frequency; } |
float frequency() const OVERRIDE { return dimreg->LFO3Frequency; } |
167 |
|
float phase() const OVERRIDE { return dimreg->LFO3Phase; } |
168 |
uint internalDepth() const OVERRIDE { |
uint internalDepth() const OVERRIDE { |
169 |
const gig::lfo3_ctrl_t ctrl = dimreg->LFO3Controller; |
const gig::lfo3_ctrl_t ctrl = dimreg->LFO3Controller; |
170 |
const bool hasInternalDepth = ( |
const bool hasInternalDepth = ( |
173 |
return (hasInternalDepth) ? dimreg->LFO3InternalDepth : 0; |
return (hasInternalDepth) ? dimreg->LFO3InternalDepth : 0; |
174 |
} |
} |
175 |
uint controllerDepth() const OVERRIDE { return dimreg->LFO3ControlDepth; } |
uint controllerDepth() const OVERRIDE { return dimreg->LFO3ControlDepth; } |
176 |
bool flipPolarity() const OVERRIDE { return false; } |
bool flipPolarity() const OVERRIDE { return dimreg->LFO3FlipPhase; } |
177 |
bool signedRange() const OVERRIDE { return true; } |
bool signedRange() const OVERRIDE { return true; } |
178 |
virtual LinuxSampler::LFO::start_level_t startLevel() const OVERRIDE { return LinuxSampler::LFO::start_level_max; } // see https://sourceforge.net/p/linuxsampler/mailman/linuxsampler-devel/thread/2189307.cNP0Xbctxq%40silver/#msg36774029 |
virtual LinuxSampler::LFO::start_level_t startLevel() const OVERRIDE { return LinuxSampler::LFO::start_level_max; } // see https://sourceforge.net/p/linuxsampler/mailman/linuxsampler-devel/thread/2189307.cNP0Xbctxq%40silver/#msg36774029 |
179 |
bool hasControllerAssigned() const OVERRIDE { return dimreg->LFO3Controller; } |
bool hasControllerAssigned() const OVERRIDE { return dimreg->LFO3Controller; } |
265 |
NumEntryTemp<uint8_t> eEG1ControllerDecayInfluence; |
NumEntryTemp<uint8_t> eEG1ControllerDecayInfluence; |
266 |
NumEntryTemp<uint8_t> eEG1ControllerReleaseInfluence; |
NumEntryTemp<uint8_t> eEG1ControllerReleaseInfluence; |
267 |
EGStateOptions eEG1StateOptions; |
EGStateOptions eEG1StateOptions; |
268 |
|
ChoiceEntryLfoWave eLFO1Wave; |
269 |
NumEntryTemp<double> eLFO1Frequency; |
NumEntryTemp<double> eLFO1Frequency; |
270 |
|
NumEntryTemp<double> eLFO1Phase; |
271 |
NumEntryTemp<uint16_t> eLFO1InternalDepth; |
NumEntryTemp<uint16_t> eLFO1InternalDepth; |
272 |
NumEntryTemp<uint16_t> eLFO1ControlDepth; |
NumEntryTemp<uint16_t> eLFO1ControlDepth; |
273 |
ChoiceEntry<gig::lfo1_ctrl_t> eLFO1Controller; |
ChoiceEntry<gig::lfo1_ctrl_t> eLFO1Controller; |
286 |
NumEntryTemp<uint8_t> eEG2ControllerDecayInfluence; |
NumEntryTemp<uint8_t> eEG2ControllerDecayInfluence; |
287 |
NumEntryTemp<uint8_t> eEG2ControllerReleaseInfluence; |
NumEntryTemp<uint8_t> eEG2ControllerReleaseInfluence; |
288 |
EGStateOptions eEG2StateOptions; |
EGStateOptions eEG2StateOptions; |
289 |
|
ChoiceEntryLfoWave eLFO2Wave; |
290 |
NumEntryTemp<double> eLFO2Frequency; |
NumEntryTemp<double> eLFO2Frequency; |
291 |
|
NumEntryTemp<double> eLFO2Phase; |
292 |
NumEntryTemp<uint16_t> eLFO2InternalDepth; |
NumEntryTemp<uint16_t> eLFO2InternalDepth; |
293 |
NumEntryTemp<uint16_t> eLFO2ControlDepth; |
NumEntryTemp<uint16_t> eLFO2ControlDepth; |
294 |
ChoiceEntry<gig::lfo2_ctrl_t> eLFO2Controller; |
ChoiceEntry<gig::lfo2_ctrl_t> eLFO2Controller; |
296 |
BoolEntry eLFO2Sync; |
BoolEntry eLFO2Sync; |
297 |
NumEntryTemp<double> eEG3Attack; |
NumEntryTemp<double> eEG3Attack; |
298 |
NumEntryTemp<int16_t> eEG3Depth; |
NumEntryTemp<int16_t> eEG3Depth; |
299 |
|
ChoiceEntryLfoWave eLFO3Wave; |
300 |
NumEntryTemp<double> eLFO3Frequency; |
NumEntryTemp<double> eLFO3Frequency; |
301 |
|
NumEntryTemp<double> eLFO3Phase; |
302 |
NumEntryTemp<int16_t> eLFO3InternalDepth; |
NumEntryTemp<int16_t> eLFO3InternalDepth; |
303 |
NumEntryTemp<int16_t> eLFO3ControlDepth; |
NumEntryTemp<int16_t> eLFO3ControlDepth; |
304 |
ChoiceEntry<gig::lfo3_ctrl_t> eLFO3Controller; |
ChoiceEntry<gig::lfo3_ctrl_t> eLFO3Controller; |
305 |
|
BoolEntry eLFO3FlipPhase; |
306 |
BoolEntry eLFO3Sync; |
BoolEntry eLFO3Sync; |
307 |
BoolEntry eVCFEnabled; |
BoolEntry eVCFEnabled; |
308 |
ChoiceEntry<gig::vcf_type_t> eVCFType; |
ChoiceEntry<gig::vcf_type_t> eVCFType; |