| 69 | } |
| 70 | |
| 71 | void 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 |
| 85 | std::string Robotization::Json() const { |
nothing calls this directly
no outgoing calls
no test coverage detected