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

Method DrawModule

Source/Vocoder.cpp:211–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void Vocoder::DrawModule()
212{
213 if (Minimized() || IsVisible() == false)
214 return;
215
216 if (!mCarrierDataSet)
217 {
218 ofPushStyle();
219 ofSetColor(255, 0, 0);
220 DrawTextNormal("no vocodercarrier!", 5, 15);
221 ofPopStyle();
222 }
223
224 mInputSlider->Draw();
225 mCarrierSlider->Draw();
226 mVolumeSlider->Draw();
227 mDryWetSlider->Draw();
228 mFricativeSlider->Draw();
229 mWhisperSlider->Draw();
230 mPhaseOffsetSlider->Draw();
231 mCutSlider->Draw();
232
233 if (mFricDetected)
234 {
235 ofPushStyle();
236 ofFill();
237 ofSetColor(255, 0, 0, gModuleDrawAlpha * .4f);
238 ofRect(5, 101, 100, 14);
239 ofPopStyle();
240 mFricDetected = false;
241 }
242
243 mGate.Draw();
244}
245
246void Vocoder::CheckboxUpdated(Checkbox* checkbox, double time)
247{

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected