MCPcopy Create free account
hub / github.com/christophhart/HISE / getValueModeValue

Method getValueModeValue

hi_scripting/scripting/api/ScriptModulationMatrix.cpp:1016–1027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014}
1015
1016String 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
1029double ScriptModulationMatrix::ModulatorTargetData::getIntensityValue(GlobalModulator* gm) const
1030{

Callers 2

getConnectionDataMethod · 0.80
getValueModeDataMethod · 0.80

Calls 2

getModeMethod · 0.45
isBipolarMethod · 0.45

Tested by

no test coverage detected