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

Method toggleBipolarMode

Source/PluginProcessor.cpp:2214–2230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2212}
2213
2214void FireAudioProcessor::toggleBipolarMode(const juce::String& targetParameterID)
2215{
2216 // Find the matching routing in the modulation array.
2217 for (auto& routing : lfoManager->getModulationRoutings())
2218 {
2219 if (routing.targetParameterID == targetParameterID)
2220 {
2221 // Found it. Flip the boolean state.
2222 routing.isBipolar = ! routing.isBipolar;
2223
2224 lfoDataHasChanged();
2225
2226 // For now, we only handle the first match.
2227 return;
2228 }
2229 }
2230}
2231
2232void FireAudioProcessor::resetModulation(const juce::String& targetParameterID)
2233{

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected