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

Method DistortionEffect

Source/DistortionEffect.cpp:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30#include "UIControlMacros.h"
31
32DistortionEffect::DistortionEffect()
33{
34 SetClip(1);
35
36 for (int i = 0; i < ChannelBuffer::kMaxNumChannels; ++i)
37 {
38 mDCRemover[i].SetFilterParams(10, sqrt(2) / 2);
39 mDCRemover[i].SetFilterType(kFilterType_Highpass);
40 mDCRemover[i].UpdateFilterCoeff();
41
42 mPeakTracker[i].SetDecayTime(.1f);
43 }
44}
45
46void DistortionEffect::CreateUIControls()
47{

Callers

nothing calls this directly

Calls 4

UpdateFilterCoeffMethod · 0.80
SetDecayTimeMethod · 0.80
SetFilterParamsMethod · 0.45
SetFilterTypeMethod · 0.45

Tested by

no test coverage detected