| 2194 | } |
| 2195 | |
| 2196 | void FireAudioProcessor::setModulationDepth(const juce::String& targetParameterID, float newDepth) |
| 2197 | { |
| 2198 | // Find the matching routing in the modulation array. |
| 2199 | for (auto& routing : lfoManager->getModulationRoutings()) |
| 2200 | { |
| 2201 | if (routing.targetParameterID == targetParameterID) |
| 2202 | { |
| 2203 | // Found it. Update its depth value, ensuring it stays within the [0, 1] range. |
| 2204 | routing.depth = juce::jlimit(-1.0f, 1.0f, newDepth); |
| 2205 | |
| 2206 | lfoDataHasChanged(); |
| 2207 | |
| 2208 | // For now, we only handle the first match. |
| 2209 | return; |
| 2210 | } |
| 2211 | } |
| 2212 | } |
| 2213 | |
| 2214 | void FireAudioProcessor::toggleBipolarMode(const juce::String& targetParameterID) |
| 2215 | { |
no outgoing calls
no test coverage detected