forked from DanielHands008/voicemeeter-remote-potato-napi
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtestting.js
43 lines (30 loc) · 1.07 KB
/
testting.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const voicemeeter = require('./index.js');
async function start() {
try {
await voicemeeter.init();
//Login into Voicemeeter
voicemeeter.login();
//Update Device List
voicemeeter.updateDeviceList();
// Get Voicemeeter Info return { name: 'VoiceMeeter Potato', index: 3, version: '3.0.0.8' }
console.log('VoiceMeeter Info', voicemeeter.getVoicemeeterInfo());
var test = await voicemeeter.getMultiParameter([
{ type: 'StRip', id: 0, getVals: ['mono', 'Mute', 'solo', 'gain'] },
{ type: 'Bus', id: 0, getVals: ['Mono', 'mute', 'gain'] }
])
console.log(test)
setInterval(() => {
if (voicemeeter.isParametersDirty()) {
Loop()
}
}, 10)
} catch (e) {
console.log(e)
}
}
start();
async function Loop(params) {
console.log('MIDI', ' || ', voicemeeter.getMidi())
console.log('Level', ' || ', voicemeeter.getLevelByID(3, 6))
console.log('getAllParameter || ', await voicemeeter.getAllParameter())
}