| 45 | |
| 46 | |
| 47 | void assertValidCtrlStates(vector<int> ctrls, vector<int> ctrlStates) { |
| 48 | |
| 49 | // providing no control states is always valid (to invoke default all-on-1) |
| 50 | if (ctrlStates.empty()) |
| 51 | return; |
| 52 | |
| 53 | // otherwise a state must be explicitly given for each ctrl |
| 54 | if (ctrlStates.size() != ctrls.size()) |
| 55 | error_localiserNumCtrlStatesInconsistentWithNumCtrls(); |
| 56 | } |
| 57 | |
| 58 | |
| 59 | void setDefaultCtrlStates(vector<int> ctrls, vector<int> &states) { |
no test coverage detected