MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / setModulationDepth

Method setModulationDepth

Source/PluginProcessor.cpp:2196–2212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2194}
2195
2196void 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
2214void FireAudioProcessor::toggleBipolarMode(const juce::String& targetParameterID)
2215{

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected