| 251 | } |
| 252 | |
| 253 | bool 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 | |
| 294 | bool ControllerArea::processBendChanged(int channel, float value) |
| 295 | { |
no test coverage detected