mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2025-06-27 14:50:23 +01:00
Added some logic to test but changes seem to work now
This commit is contained in:
parent
714d2fc972
commit
abbbf57982
@ -2,20 +2,35 @@ import time
|
|||||||
|
|
||||||
import voicemeeterlib
|
import voicemeeterlib
|
||||||
|
|
||||||
|
# Creates an array of channels you want to edit
|
||||||
|
# s is the channel to start on, n is how many channels to edit
|
||||||
|
def create_channel_array(s, n):
|
||||||
|
return list(range(s, s+n))
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
KIND_ID = 'banana'
|
KIND_ID = 'banana'
|
||||||
|
|
||||||
with voicemeeterlib.api(KIND_ID) as vm:
|
with voicemeeterlib.api(KIND_ID) as vm:
|
||||||
|
print( 'Check getting values' )
|
||||||
|
print( f'Bus[0].EQ.on: {vm.bus[0].eq.on}')
|
||||||
|
print( f'Bus[0].EQ.channel[0].cell[0].on: {vm.bus[0].eq.channel[0].cell[0].on}')
|
||||||
|
|
||||||
|
print( 'Check sending commands (should affect your VM Banana window)')
|
||||||
|
channels_idx = create_channel_array(0, 2)
|
||||||
vm.bus[0].eq.on = True
|
vm.bus[0].eq.on = True
|
||||||
vm.bus[0].eq.channel[0].cell[0].on = True
|
vm.bus[0].eq.ab = 0 # corresponds to A EQ memory slot
|
||||||
vm.bus[0].eq.channel[0].cell[0].f = 500
|
vm.bus[0].mute = False
|
||||||
vm.bus[0].eq.channel[0].cell[0].type = 3 # Should correspond to LPF
|
for i in channels_idx:
|
||||||
|
vm.bus[0].eq.channel[i].cell[0].on = True
|
||||||
|
vm.bus[0].eq.channel[i].cell[0].f = 500
|
||||||
|
vm.bus[0].eq.channel[i].cell[0].type = 3 # Should correspond to LPF
|
||||||
|
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
vm.bus[0].eq.on = False
|
vm.bus[0].eq.on = False
|
||||||
vm.bus[0].eq.channel[0].cell[0].on = False
|
for i in channels_idx:
|
||||||
vm.bus[0].eq.channel[0].cell[0].f = 50
|
vm.bus[0].eq.channel[i].cell[0].on = False
|
||||||
vm.bus[0].eq.channel[0].cell[0].type = 0
|
vm.bus[0].eq.channel[i].cell[0].f = 50
|
||||||
|
vm.bus[0].eq.channel[i].cell[0].type = 0
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
Loading…
x
Reference in New Issue
Block a user