Implements a modulator object.
More...
#include <synthbase.h>
|
double | modArray [MAX_MODULATION_CHANNELS] |
|
Implements a modulator object.
- exposes the IModulator interface
- each SynthModule owns two Modulators objects, one for the modulation input values (that come from modulation sources) and one for the modulation outputs, if the module writes to them (i.e. if the module is a modulator object)
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2021 / 04 / 26
◆ Modulators()
SynthLab::Modulators::Modulators |
( |
| ) |
|
constructs the modulator object
- initializes input value to "proper" settings for a note-on event
◆ getModArrayPtr()
double * SynthLab::Modulators::getModArrayPtr |
( |
uint32_t |
index | ) |
|
|
virtual |
get a pointer to a slot in the modulation array
for modulation matrix to have instant access to the input array
- Parameters
-
index | the index of the slot in the array |
Implements SynthLab::IModulator.
◆ getModulatorPtr()
IModulator* SynthLab::Modulators::getModulatorPtr |
( |
| ) |
|
|
inline |
helper function to return pointer to interface
◆ getModValue()
double SynthLab::Modulators::getModValue |
( |
uint32_t |
index | ) |
|
|
virtual |
get a value from a slot in the modulation array
- Parameters
-
index | the index of the slot in the array |
Implements SynthLab::IModulator.
◆ initInputValues()
void SynthLab::Modulators::initInputValues |
( |
| ) |
|
set default values in modulator array
set defaults to avoid accidental note-off state, e.g. MIDI volume is accidentally initialized to 0.0
- initializes input value to "proper" settings for a note-on event
◆ setModValue()
void SynthLab::Modulators::setModValue |
( |
uint32_t |
index, |
|
|
double |
value |
|
) |
| |
|
virtual |
set a value into a slot in the modulation array
- Parameters
-
index | the index of the slot in the array |
Implements SynthLab::IModulator.
The documentation for this class was generated from the following files: