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

Method getValue

hi_scripting/scripting/api/ScriptComponentWrappers.cpp:3082–3096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3080}
3081
3082float ScriptedControlAudioParameter::getValue() const
3083{
3084 if (scriptProcessor.get() != nullptr)
3085 {
3086 const float value = jlimit<float>(0.0f, 1.0f, range.convertTo0to1(scriptProcessor->getAttribute(componentIndex)));
3087
3088 return value;
3089
3090 }
3091 else
3092 {
3093 //jassertfalse;
3094 return 0.0f;
3095 }
3096}
3097
3098void ScriptedControlAudioParameter::setValue(float newValue)
3099{

Callers 7

updateTooltipMethod · 0.45
getTextForValuePopupMethod · 0.45
updateItemsMethod · 0.45
LabelWrapperMethod · 0.45
updateEditabilityMethod · 0.45
labelTextChangedMethod · 0.45
timerCallbackMethod · 0.45

Calls 3

getMethod · 0.45
convertTo0to1Method · 0.45
getAttributeMethod · 0.45

Tested by

no test coverage detected