| 1014 | } |
| 1015 | |
| 1016 | String ScriptModulationMatrix::ModulatorTargetData::getValueModeValue(GlobalModulator* gm) const |
| 1017 | { |
| 1018 | if (dynamic_cast<Modulation*>(gm)->getMode() == Modulation::Mode::GainMode) |
| 1019 | { |
| 1020 | // This will only happen in frequency mode... |
| 1021 | return ValueModeHelpers::getModeName(ValueMode::Scale); |
| 1022 | } |
| 1023 | |
| 1024 | auto isBipolar = dynamic_cast<Modulation*>(gm)->isBipolar(); |
| 1025 | |
| 1026 | return ValueModeHelpers::getModeName(isBipolar ? ValueMode::Bipolar : ValueMode::Unipolar); |
| 1027 | } |
| 1028 | |
| 1029 | double ScriptModulationMatrix::ModulatorTargetData::getIntensityValue(GlobalModulator* gm) const |
| 1030 | { |
no test coverage detected