mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2026-04-13 10:33:30 +00:00
re-run through ruff formatter
This commit is contained in:
@@ -22,10 +22,10 @@ class App:
|
||||
self.vm.end_thread()
|
||||
|
||||
def on_pdirty(self):
|
||||
print("pdirty!")
|
||||
print('pdirty!')
|
||||
|
||||
def on_mdirty(self):
|
||||
print("mdirty!")
|
||||
print('mdirty!')
|
||||
|
||||
def on_ldirty(self):
|
||||
for bus in self.vm.bus:
|
||||
@@ -34,20 +34,20 @@ class App:
|
||||
|
||||
def on_midi(self):
|
||||
current = self.vm.midi.current
|
||||
print(f"Value of midi button {current} is {self.vm.midi.get(current)}")
|
||||
print(f'Value of midi button {current} is {self.vm.midi.get(current)}')
|
||||
|
||||
|
||||
def main():
|
||||
KIND_ID = "banana"
|
||||
KIND_ID = 'banana'
|
||||
|
||||
with voicemeeterlib.api(KIND_ID) as vm:
|
||||
with App(vm):
|
||||
for i in range(5, 0, -1):
|
||||
print(f"events start in {i} seconds")
|
||||
print(f'events start in {i} seconds')
|
||||
time.sleep(1)
|
||||
vm.event.add(["pdirty", "ldirty", "midi", "mdirty"])
|
||||
vm.event.add(['pdirty', 'ldirty', 'midi', 'mdirty'])
|
||||
time.sleep(30)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user