Lines Matching refs:index
15 static int32 VHostCallback(VSTEffect* effect, int32 opcode, int32 index,
38 VSTParameter::VSTParameter(VSTPlugin* plugin, int index)
40 fIndex = index;
47 fEffect->dispatcher(fEffect, VST_GET_PARAM_NAME, index, 0, temp, 0);
52 fEffect->dispatcher(fEffect, VST_GET_PARAM_UNIT, index, 0, temp, 0);
56 float val = fEffect->getParameter(fEffect, index);
58 fEffect->setParameter(fEffect, index, 0);
60 fEffect->dispatcher(fEffect, VST_GET_PARAM_STR, index, 0, temp, 0);
65 fEffect->setParameter(fEffect, index, 1.0);
66 fEffect->dispatcher(fEffect, VST_GET_PARAM_STR, index, 0, temp, 0);
80 fEffect->setParameter(fEffect, index, v);
82 float new_value = fEffect->getParameter(fEffect, index);
92 fEffect->dispatcher(fEffect, VST_GET_PARAM_STR, index,
99 fEffect->setParameter(fEffect, index, val);
183 VSTParameter::ListItemAt(int index)
186 if (index >= 0 && index < fDropList.CountItems())
187 item = (DropListValue*)fDropList.ItemAt(index);
221 //take value by index
222 int index = (int)vstround(value);
223 if (index >= 0 && index < fDropList.CountItems()) {
224 DropListValue *item = (DropListValue*)fDropList.ItemAt(index);
226 fLastValue = index;
461 VSTPlugin::Parameter(int index)
465 if (index >= 0 && index < fParameters.CountItems())
466 param = (VSTParameter*)fParameters.ItemAt(index);
540 VHostCallback(VSTEffect* effect, int32 opcode, int32 index, int32 value,