Skip to content

Commit

Permalink
Merge pull request #9 from Mikatux/parameter-getters
Browse files Browse the repository at this point in the history
Add parameters getters
  • Loading branch information
Raraph84 authored Jul 16, 2023
2 parents 631b889 + f370be9 commit bc3a246
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ busesParametersNames.forEach((name) => {
else
voicemeeter._setParameter(InterfaceType.bus, name, busNumber, value);
}

voicemeeter[`getBus${name}`] = (busNumber) => {
return voicemeeter._getParameter(InterfaceType.bus, name, busNumber);
}
});

stripParametersNames.forEach((name) => {
Expand All @@ -375,6 +379,10 @@ stripParametersNames.forEach((name) => {
else
voicemeeter._setParameter(InterfaceType.strip, name, stripNumber, value);
}

voicemeeter[`getStrip${name}`] = (stripNumber) => {
return voicemeeter._getParameter(InterfaceType.strip, name, stripNumber);
}
});

module.exports = voicemeeter;
Expand Down

0 comments on commit bc3a246

Please sign in to comment.