4 #include "guiconstants.h" 39 ModMatrix(std::shared_ptr<ModMatrixParameters> _parameters);
45 void addModSource(uint32_t sourceArrayIndex,
double* sourceModPtr);
47 void addModDestination(uint32_t destArrayIndex,
double* destModPtr, uint32_t transform = kNoMMTransform);
53 std::shared_ptr<ModMatrixParameters>
getParameters() {
return parameters; }
57 std::shared_ptr<ModMatrixParameters> parameters =
nullptr;
60 double* modSourceData[kNumberModSources];
61 double* modDestinationData[kNumberModDestinations];
62 uint32_t modDestTransform[kNumberModDestinations];
virtual ~ModMatrix()
Definition: modmatrix.h:42
Very customizable modulation matrix object.
Definition: modmatrix.h:35
void addModDestination(uint32_t destArrayIndex, double *destModPtr, uint32_t transform=kNoMMTransform)
Adds a modulation destination to the matrix.
Definition: modmatrix.cpp:76
void clearModDestination(uint32_t destArrayIndex)
Removes a modulation destination to the matrix.
Definition: modmatrix.cpp:92
Definition: addosccore.cpp:4
void clearModSource(uint32_t sourceArrayIndex)
Removes a modulation source to the matrix.
Definition: modmatrix.cpp:58
ModMatrix(std::shared_ptr< ModMatrixParameters > _parameters)
Clears out matrix arrays for initial state.
Definition: modmatrix.cpp:24
void runModMatrix()
Runs the modulation matrix (see Synth book)
Definition: modmatrix.cpp:123
std::shared_ptr< ModMatrixParameters > getParameters()
Definition: modmatrix.h:53
void clearModMatrixArrays()
Clears out all source and destination pointers from the array.
Definition: modmatrix.cpp:106
void addModSource(uint32_t sourceArrayIndex, double *sourceModPtr)
Adds a modulation source to the matrix.
Definition: modmatrix.cpp:43
hard-coded arrays of FIR filter coefficients for the sample rate conversion objects (Interpolator and...
See also Designing Software Synthesizers in C++ 2nd Ed. by Will Pirkle.