Skip to content

Commit

Permalink
Merge pull request #51 from istnv/bug/lr-usb-proc
Browse files Browse the repository at this point in the history
Bugfix: Add missing actions
  • Loading branch information
josephdadams authored Oct 30, 2022
2 parents 57322b6 + 77a7637 commit 03421b2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ instance.prototype.init_strips = function () {
// 'proc' routing toggles
for (var p of theStrip.proc) {
theID = `${chID}/${defProc[p].node}`;
fID = bx_unslash(fbID) + '_' + p
fID = `${fbID}_${p}`
stat[theID] = {
isOn: false,
hasOn: true,
Expand Down Expand Up @@ -1853,7 +1853,7 @@ instance.prototype.init_osc = function() {
if (self.needStats) {
self.pollStats();
}
debug(message);
// debug(message);
} else if (node.match(/^\/xinfo$/)) {
self.myMixer.name = args[1].value;
self.myMixer.model = args[2].value;
Expand Down Expand Up @@ -2416,6 +2416,22 @@ instance.prototype.action = function(action) {
};
break;

case 'm_insert':
case 'm_dyn':
case 'm_eq':
case 'u_eq':
var p = action.action.split('_').pop()
if (action.action.split('_')[0] == 'm') {
cmd = `/lr/${p}/on`
} else {
cmd = `/rtn/aux/${p}/on`
}
arg = {
type: 'i',
value: setToggle(cmd, opt.set)
}
break;

case 'usbMute':
cmd = '/rtn/aux/mix/on';
arg = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"legacy": [
"xair"
],
"version": "1.6.10",
"version": "1.6.11",
"api_version": "1.0.0",
"keywords": [
"Audio",
Expand Down

0 comments on commit 03421b2

Please sign in to comment.