MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / updateFilters

Method updateFilters

src/audio_effects/Distortion.cpp:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void Distortion::updateFilters(int64_t frame_number)
134{
135 double discrete_frequency = M_PI * 0.01;
136 double gain = pow(10.0, (float)tone.GetValue(frame_number) * 0.05);
137
138 for (int i = 0; i < filters.size(); ++i)
139 filters[i]->updateCoefficients(discrete_frequency, gain);
140}
141
142// Generate JSON string of this object
143std::string Distortion::Json() const {

Callers

nothing calls this directly

Calls 2

GetValueMethod · 0.80
updateCoefficientsMethod · 0.45

Tested by

no test coverage detected