MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / setParameter

Method setParameter

Source/Plugin/CtrlrProcessor.cpp:99–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void CtrlrProcessor::setParameter (int index, float newValue)
100{
101 CtrlrModulator *m = ctrlrManager->getModulatorByVstIndex (index);
102 if (m == nullptr)
103 {
104 return;
105 }
106 else if (newValue > 1.0f || newValue < 0.000000f)
107 {
108 return;
109 }
110 else
111 {
112 return (m->getProcessor().setValueFromHost(newValue));
113 }
114}
115
116const String CtrlrProcessor::getParameterName (int index)
117{

Callers

nothing calls this directly

Calls 3

setValueFromHostMethod · 0.80
getProcessorMethod · 0.45

Tested by

no test coverage detected