| 966 | } |
| 967 | |
| 968 | int ScriptModulationMatrix::ModulatorTargetData::getTypeIndex(GlobalModulator* gm) const |
| 969 | { |
| 970 | auto asMod = dynamic_cast<Modulator*>(gm); |
| 971 | |
| 972 | for (int i = 0; i < 3; i++) |
| 973 | { |
| 974 | if (modulators[i].contains(asMod)) |
| 975 | return i; |
| 976 | |
| 977 | if (targetMode == TargetMode::FrequencyMode && freqAddMods[i].contains(asMod)) |
| 978 | return i; |
| 979 | } |
| 980 | |
| 981 | jassertfalse; |
| 982 | return -1; |
| 983 | } |
| 984 | |
| 985 | void ScriptModulationMatrix::ModulatorTargetData::updateValue() |
| 986 | { |
no test coverage detected