- if (knob->id() < 8) { // sendA
- ac = stripable[chan]->trim_control();
- }
- else if (knob->id() >= 8 && knob->id() < 16) { // sendB
- ac = stripable[chan]->pan_width_control();
- }
- else if (knob->id() >= 16 && knob->id() < 24) { // pan
- ac = stripable[chan]->pan_azimuth_control();
+ if (knob->id() < 8) { // sendA knob
+ if (buttons_down.find(Device) != buttons_down.end()) { // Device button hold
+ ac = stripable[chan]->trim_control();
+ } else {
+ ac = stripable[chan]->send_level_controllable (0);
+ }
+ } else if (knob->id() >= 8 && knob->id() < 16) { // sendB knob
+ if (buttons_down.find(Device) != buttons_down.end()) { // Device button hold
+#ifdef MIXBUS
+ ac = stripable[chan]->filter_freq_controllable (true);
+#else
+ /* something */
+#endif
+ } else {
+ ac = stripable[chan]->send_level_controllable (1);
+ }
+ } else if (knob->id() >= 16 && knob->id() < 24) { // pan knob
+ if (buttons_down.find(Device) != buttons_down.end()) { // Device button hold
+#ifdef MIXBUS
+ ac = stripable[chan]->comp_threshold_controllable();
+#else
+ ac = stripable[chan]->pan_width_control();
+#endif
+ } else {
+ ac = stripable[chan]->pan_azimuth_control();
+ }