| 53 | } |
| 54 | |
| 55 | bool LfoManager::isModulationActive() const |
| 56 | { |
| 57 | // Iterate through all modulation routings. |
| 58 | for (const auto& routing : modulationRoutings) |
| 59 | { |
| 60 | // If we find any routing with a valid target parameter, |
| 61 | // it means modulation is active. |
| 62 | if (routing.targetParameterID.isNotEmpty()) |
| 63 | { |
| 64 | return true; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | // If we get through the whole loop without finding an active routing, |
| 69 | // then no modulation is active. |
| 70 | return false; |
| 71 | } |
| 72 | |
| 73 | // ============================================================================= |
| 74 | // Main Processing Logic |