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

Method modification

src/audio_effects/Robotization.cpp:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void Robotization::RobotizationEffect::modification(const int channel)
72{
73 fft->perform(time_domain_buffer, frequency_domain_buffer, false);
74
75 for (int index = 0; index < fft_size; ++index) {
76 float magnitude = abs(frequency_domain_buffer[index]);
77 frequency_domain_buffer[index].real(magnitude);
78 frequency_domain_buffer[index].imag(0.0f);
79 }
80
81 fft->perform(frequency_domain_buffer, time_domain_buffer, true);
82}
83
84// Generate JSON string of this object
85std::string Robotization::Json() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected