MCPcopy Create free account
hub / github.com/davy7125/polyphone / processControllerChanged

Method processControllerChanged

sources/clavier/controllerarea.cpp:253–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253bool ControllerArea::processControllerChanged(int channel, int num, int value)
254{
255 if (channel != _channel)
256 return false;
257
258 // Update first input?
259 if (ui->comboControl1->getCurrentCC() == num)
260 {
261 ui->knob1->blockSignals(true);
262 ui->knob1->setValue(value);
263 ui->labelValue1->setText(QString::number(value));
264 ui->knob1->blockSignals(false);
265 }
266
267 // Update second input?
268 if (ui->comboControl2->getCurrentCC() == num)
269 {
270 ui->knob2->blockSignals(true);
271 ui->knob2->setValue(value);
272 ui->labelValue2->setText(QString::number(value));
273 ui->knob2->blockSignals(false);
274 }
275
276 // Update third input?
277 if (ui->comboControl3->getCurrentCC() == num)
278 {
279 ui->knob3->blockSignals(true);
280 ui->knob3->setValue(value);
281 ui->labelValue3->setText(QString::number(value));
282 ui->knob3->blockSignals(false);
283 }
284
285 // Update fourth input?
286 if (ui->comboControl4->getCurrentCC() == num)
287 {
288 _ledState = (value >= 64);
289 updateInput4Display();
290 }
291 return false;
292}
293
294bool ControllerArea::processBendChanged(int channel, float value)
295{

Callers 5

on_knob1_valueChangedMethod · 0.45
on_knob2_valueChangedMethod · 0.45
on_knob3_valueChangedMethod · 0.45
on_push4_clickedMethod · 0.45

Calls 3

getCurrentCCMethod · 0.80
setTextMethod · 0.80
setValueMethod · 0.45

Tested by

no test coverage detected