| 2230 | } |
| 2231 | |
| 2232 | void FireAudioProcessor::resetModulation(const juce::String& targetParameterID) |
| 2233 | { |
| 2234 | // Find the matching routing in the modulation array. |
| 2235 | for (auto& routing : lfoManager->getModulationRoutings()) |
| 2236 | { |
| 2237 | if (routing.targetParameterID == targetParameterID) |
| 2238 | { |
| 2239 | // Reset depth to 0.5 and mode to the default (bipolar) |
| 2240 | routing.depth = 0.5f; |
| 2241 | routing.isBipolar = true; |
| 2242 | |
| 2243 | lfoDataHasChanged(); |
| 2244 | |
| 2245 | // We found the routing and reset it, so we can exit the function. |
| 2246 | return; |
| 2247 | } |
| 2248 | } |
| 2249 | } |
| 2250 | |
| 2251 | void FireAudioProcessor::assignModulation(int routingIndex, int sourceLfoIndex, const juce::String& targetParameterID) |
| 2252 | { |
no outgoing calls
no test coverage detected