MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / DrawModule

Method DrawModule

Source/TremoloEffect.cpp:96–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void TremoloEffect::DrawModule()
97{
98 if (!mEnabled)
99 return;
100
101 mAmountSlider->Draw();
102 mIntervalSelector->Draw();
103 mOffsetSlider->Draw();
104 mOscSelector->Draw();
105 mDutySlider->Draw();
106
107 ofPushStyle();
108 ofSetColor(0, 200, 0, gModuleDrawAlpha * .3f);
109 ofFill();
110 ofRect(5, 4, mLFO.Value() * 85 * mAmount, 14);
111 ofPopStyle();
112}
113
114float TremoloEffect::GetEffectAmount()
115{

Callers

nothing calls this directly

Calls 7

ofPushStyleFunction · 0.85
ofSetColorFunction · 0.85
ofFillFunction · 0.85
ofRectFunction · 0.85
ofPopStyleFunction · 0.85
DrawMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected