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

Method resetModulation

Source/PluginProcessor.cpp:2232–2249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2230}
2231
2232void 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
2251void FireAudioProcessor::assignModulation(int routingIndex, int sourceLfoIndex, const juce::String& targetParameterID)
2252{

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected