| 3080 | } |
| 3081 | |
| 3082 | float 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 | |
| 3098 | void ScriptedControlAudioParameter::setValue(float newValue) |
| 3099 | { |
no test coverage detected