Skip to content

Commit

Permalink
add custom defines and new HetrickCV modules
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Feb 29, 2024
1 parent a0950f1 commit a2d7184
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ PLUGIN_FILES += $(wildcard HetrickCV/Gamma/src/Domain.cpp)
PLUGIN_FILES += $(wildcard HetrickCV/Gamma/src/scl.cpp)

# modules/types which are present in other plugins
HETRICKCV_CUSTOM = ASR BlankPanel FlipFlop MidSide MinMax
HETRICKCV_CUSTOM = ASR BlankPanel FlipFlop MidSide MinMax PanelBaseWidget InverterWidget

# --------------------------------------------------------------
# ImpromptuModular
Expand Down
70 changes: 70 additions & 0 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ void saveGtgPluginDefault(const char*, int) {}
#define modelFlipFlop modelHetrickCVFlipFlop
#define modelMidSide modelHetrickCVMidSide
#define modelMinMax modelHetrickCVMinMax
#define PanelBaseWidget HetrickCVPanelBaseWidget
#define InverterWidget HetrickCVInverterWidget
extern Model* modelTwoToFour;
extern Model* modelAnalogToDigital;
extern Model* modelASR;
Expand All @@ -421,11 +423,42 @@ extern Model* modelExponent;
extern Model* modelFBSineChaos;
extern Model* modelFlipFlop;
extern Model* modelFlipPan;
extern Model* modelGateDelay;
extern Model* modelGateJunction;
extern Model* modelGateJunctionExp;
extern Model* modelGingerbread;
extern Model* modelLogicCombine;
extern Model* modelMidSide;
extern Model* modelMinMax;
extern Model *modelPhaseDrivenSequencer;
extern Model *modelPhaseDrivenSequencer32;
extern Model *modelPhasorAnalyzer;
extern Model *modelPhasorBurstGen;
extern Model *modelPhasorDivMult;
extern Model *modelPhasorEuclidean;
extern Model *modelPhasorGates;
extern Model *modelPhasorGates32;
extern Model *modelPhasorGates64;
extern Model *modelPhasorGen;
extern Model *modelPhasorGeometry;
extern Model *modelPhasorHumanizer;
extern Model *modelPhasorMixer;
extern Model *modelPhasorOctature;
extern Model *modelPhasorQuadrature;
extern Model *modelPhasorRandom;
extern Model *modelPhasorRanger;
extern Model *modelPhasorReset;
extern Model *modelPhasorRhythmGroup;
extern Model *modelPhasorShape;
extern Model *modelPhasorShift;
extern Model *modelPhasorStutter;
extern Model *modelPhasorSubstepShape;
extern Model *modelPhasorSwing;
extern Model *modelPhasorTimetable;
extern Model *modelPhasorToClock;
extern Model *modelPhasorToLFO;
extern Model *modelPhasorToWaveforms;
extern Model *modelProbability;
extern Model* modelRandomGates;
extern Model* modelRotator;
extern Model* modelRungler;
Expand All @@ -437,6 +470,8 @@ extern Model* modelXYToPolar;
#undef modelFlipFlop
#undef modelMidSide
#undef modelMinMax
#undef PanelBaseWidget
#undef InverterWidget

// ImpromptuModular
/* NOTE too much noise in original include, do this a different way
Expand Down Expand Up @@ -2113,6 +2148,8 @@ static void initStatic__HetrickCV()
#define modelFlipFlop modelHetrickCVFlipFlop
#define modelMidSide modelHetrickCVMidSide
#define modelMinMax modelHetrickCVMinMax
#define PanelBaseWidget HetrickCVPanelBaseWidget
#define InverterWidget HetrickCVInverterWidget
p->addModel(modelTwoToFour);
p->addModel(modelAnalogToDigital);
p->addModel(modelASR);
Expand All @@ -2137,11 +2174,42 @@ static void initStatic__HetrickCV()
p->addModel(modelFBSineChaos);
p->addModel(modelFlipFlop);
p->addModel(modelFlipPan);
p->addModel(modelGateDelay);
p->addModel(modelGateJunction);
p->addModel(modelGateJunctionExp);
p->addModel(modelGingerbread);
p->addModel(modelLogicCombine);
p->addModel(modelMidSide);
p->addModel(modelMinMax);
p->addModel(modelPhaseDrivenSequencer);
p->addModel(modelPhaseDrivenSequencer32);
p->addModel(modelPhasorAnalyzer);
p->addModel(modelPhasorBurstGen);
p->addModel(modelPhasorDivMult);
p->addModel(modelPhasorEuclidean);
p->addModel(modelPhasorGates);
p->addModel(modelPhasorGates32);
p->addModel(modelPhasorGates64);
p->addModel(modelPhasorGen);
p->addModel(modelPhasorGeometry);
p->addModel(modelPhasorHumanizer);
p->addModel(modelPhasorMixer);
p->addModel(modelPhasorOctature);
p->addModel(modelPhasorQuadrature);
p->addModel(modelPhasorRandom);
p->addModel(modelPhasorRanger);
p->addModel(modelPhasorReset);
p->addModel(modelPhasorRhythmGroup);
p->addModel(modelPhasorShape);
p->addModel(modelPhasorShift);
p->addModel(modelPhasorStutter);
p->addModel(modelPhasorSubstepShape);
p->addModel(modelPhasorSwing);
p->addModel(modelPhasorTimetable);
p->addModel(modelPhasorToClock);
p->addModel(modelPhasorToLFO);
p->addModel(modelPhasorToWaveforms);
p->addModel(modelProbability);
p->addModel(modelRandomGates);
p->addModel(modelRotator);
p->addModel(modelRungler);
Expand All @@ -2153,6 +2221,8 @@ static void initStatic__HetrickCV()
#undef modelFlipFlop
#undef modelMidSide
#undef modelMinMax
#undef PanelBaseWidget
#undef InverterWidget
}
}

Expand Down

0 comments on commit a2d7184

Please sign in to comment.