From f370be934072f787e6060b8740fbb7d60adb7c0c Mon Sep 17 00:00:00 2001 From: Raraph84 Date: Sun, 16 Jul 2023 12:59:40 +0200 Subject: [PATCH] Add parameters getters --- index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.js b/index.js index c3ceac2..12eca95 100644 --- a/index.js +++ b/index.js @@ -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) => { @@ -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;